Peter Breitenlohner wrote: > 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. Looks like these have been fixed up in glibc $ rpm -q glibc glibc-2.10.1-2.i686 $ for LANG in en_US ru_RU fr_FR csb_PL de_DE POSIX; do > printf "%s:\t%s + %s -1 = " $LANG $(locale week-1stday first_weekday) > date -d"$(locale week-1stday) +$(($(locale first_weekday)-1))day" +%w > done en_US: 19971130 + 1 -1 = 0 ru_RU: 19971130 + 2 -1 = 1 fr_FR: 19971130 + 2 -1 = 1 csb_PL: 19971130 + 2 -1 = 1 de_DE: 19971130 + 2 -1 = 1 POSIX: 19971201 + 7 -1 = 0 We still need to apply your 2 patches though. cheers, Pádraig. -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html