]> err.no Git - util-linux/commit
cal: determine the first day of week from the locale
authorPádraig Brady <P@draigBrady.com>
Wed, 4 Mar 2009 10:07:29 +0000 (10:07 +0000)
committerKarel Zak <kzak@redhat.com>
Tue, 10 Mar 2009 12:01:39 +0000 (13:01 +0100)
commit0a9bead039d3d5c1445d94b9f439e8b1d08b4003
tree40131ad25b3a7a2ae235bc3ef60b048893f2ec8d
parent7cfbafda9c484a8cadefc47ee115086e803d9391
cal: determine the first day of week from the locale

Previously it defaulted to Sunday rather than using
the value from the locale. Lauri Nurmi <lanurmi@iki.fi>
provided the detailed argument for this change while
Samuel Thibault <samuel.thibault@ens-lyon.org> provided
the information on how to read the first day of the week
from the locale correctly.

[kzak@redhat.com: - fix "cast from pointer to integer",
                    nl_langinfo(_NL_TIME_WEEK_1STDAY) call)]

Signed-off-by: Pádraig Brady <P@draigBrady.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/cal.1
misc-utils/cal.c