Date: Thu, 5 Dec 1996 15:26:35 -0500 From: Garrett Wollman <wollman@lcs.mit.edu> To: roberto@keltia.freenix.fr (Ollivier Robert) Cc: freebsd-current@freebsd.org (FreeBSD-current users) Subject: Re: Call for national time locales Message-ID: <9612052026.AA07648@halloran-eldar.lcs.mit.edu> In-Reply-To: <Mutt.19961205203353.roberto@keltia.freenix.fr> References: <Mutt.19961201011733.roberto@keltia.freenix.fr> <199612010812.JAA09839@uriah.heep.sax.de> <Mutt.19961205203353.roberto@keltia.freenix.fr>
index | next in thread | previous in thread | raw e-mail
<<On Thu, 5 Dec 1996 20:33:53 +0100, roberto@keltia.freenix.fr (Ollivier Robert) said:
> I now have a weird problem... I use LANG=fr_FR.ISO_8859-1 and now "ls -l"
> has a weird behaviour:
> 245 [20:29] roberto@keltia:private/trn-test> ll
> -rw-r--r-- 1 roberto staff 44308 23 jan 9:21 trn4-test42.patch.gz
> ^^^^^^^^^^^^
Your culprint is the following code in ls/print.c:
static void
printtime(ftime)
time_t ftime;
{
int i;
char longstring[80];
strftime(longstring, sizeof(longstring), "%c", localtime(&ftime));
for (i = 4; i < 11; ++i)
(void)putchar(longstring[i]);
#define SIXMONTHS ((365 / 2) * 86400)
if (f_sectime)
for (i = 11; i < 24; i++)
(void)putchar(longstring[i]);
else if (ftime + SIXMONTHS > time(NULL))
for (i = 11; i < 16; ++i)
(void)putchar(longstring[i]);
else {
(void)putchar(' ');
for (i = 20; i < 24; ++i)
(void)putchar(longstring[i]);
}
(void)putchar(' ');
}
So your national `%c' format had better have the ``right'' things in
those positions.
-GAWollman
--
Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same
wollman@lcs.mit.edu | O Siem / The fires of freedom
Opinions not those of| Dance in the burning flame
MIT, LCS, ANA, or NSA| - Susan Aglukark and Chad Irschick
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9612052026.AA07648>
