Subject: Re: Locale setting for ISO 8601 date formats
To: Brian de Alwis <email@example.com>
From: Greg A. Woods <firstname.lastname@example.org>
Date: 12/03/2003 17:57:42
[ On Wednesday, December 3, 2003 at 12:45:26 (-0800), Brian de Alwis wrote: ]
> Subject: Re: Locale setting for ISO 8601 date formats
> I should have been more specific. I don't have any control over
> the application (indeed, over the many applications that use %x).
Are you certain thout that this particular application is using "%x"?
Are you also certain this application is calling setlocale(3)?
If so then you should consider running it on FreeBSD. :-)
I've just noticed/remembered that not only does NetBSD not (yet) come
with any LC_TIME definitions, and NetBSD's setlocale(3) completely, and
silently ignores all of the LC_* categories except LC_CTYPE and
LC_MESSAGES, even in -current.
On FreeBSD (since 2.2?) it all works as expected (this from 4.9-RC):
$ LANG=sv_SE.ISO8859-1 date '+%A (%a), %B (%b) %d [%x]'
Onsdag (Ons), December (Dec) 03 [2003-12-03]
Greg A. Woods
+1 416 218-0098 VE3TCP RoboHack <email@example.com>
Planix, Inc. <firstname.lastname@example.org> Secrets of the Weird <email@example.com>