Subject: Re: php from pkgsrc - setlocale not working at all
To: None <netbsd-help@netbsd.org>
From: Michael Piotrowski <mxp@dynalabs.de>
List: netbsd-help
Date: 11/14/2003 00:54:11
Amadeus <poff@sixbit.org> writes:

> So I could use setlocale. There are many locales in /usr/pkg/share/locales 
> but whenever I try:
>
> <?php
>
> setlocale(LC_ALL,"nl_NL");
>
> echo date("D m Y");
>
> ?>
>
> It always gives me the US format - even if I use the same names as in 
> usr/pkg/share (iue. there is a directory called fr, but trying fr doesnt 
> work).

In the BUGS section of setlocale(3) it says (at least on NetBSD
1.6.1):

  The current implementation supports only the "C" and "POSIX" locales for
  all but the LC_CTYPE locale.

Which basically means that the setting of the LC_TIME category is
ignored.

-- 
Michael Piotrowski, M.A.                               <mxp@dynalabs.de>
Public key at <http://www.dynalabs.de/mxp/pubkey.txt>