Re: [PATCH] util-linux-ng v2.16 -- cal is badly broken

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux