From owner-freebsd-current Thu Dec 5 12:26:57 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id MAA01373 for current-outgoing; Thu, 5 Dec 1996 12:26:57 -0800 (PST) Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id MAA01367 for ; Thu, 5 Dec 1996 12:26:52 -0800 (PST) Received: by halloran-eldar.lcs.mit.edu; (5.65v3.2/1.1.8.2/19Aug95-0530PM) id AA07648; Thu, 5 Dec 1996 15:26:35 -0500 Date: Thu, 5 Dec 1996 15:26:35 -0500 From: Garrett Wollman Message-Id: <9612052026.AA07648@halloran-eldar.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 In-Reply-To: References: <199612010812.JAA09839@uriah.heep.sax.de> Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk < 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