On Fri, 17 Jul 2009, Pádraig Brady wrote:
Peter Breitenlohner wrote:
(2) fixed locally, no patch
On my system the week starts with Saturday. For some strange reason I get
(from GNU libc 2.3.6, i686)
(int)(intptr_t)nl_langinfo(_NL_TIME_WEEK_1STDAY) = 19971130
*nl_langinfo(_NL_TIME_FIRST_WEEKDAY)) = 7
What is your locale? Perhaps you can check the latest glibc settings
for your locale and log a change request if they're incorrect.
Hi Pádraig,
this is what I get from a small test program:
./ttt 19971130 7
LANG=C ./ttt 19971130 7
LANG=POSIX ./ttt 19971130 7
LANG=en_US ./ttt 19971201 1
LANG=de_DE.utf8 ./ttt 19971201 1
LANG=fr_FR ./ttt 19971130 1
LANG=ru_RU ./ttt 19971130 1
LANG=pl_PL ./ttt 19971130 1
where the '19971130 7' comes from the file glibc-2.3.6/locale/C-time.c.
This may or may not be wrong.
Regards
Peter Breitenlohner <peb@xxxxxxxxxxxx>