[PHP] Re: PHP 4 on OSX 10.1.2

2002-01-18 Thread Ben Richardson

On 18/01/2002 at 9:24 PM, [EMAIL PROTECTED] wrote:

> Hi all
> Im trying to get setlocale to work on my OSX box
> 
>  print (strftime ("%A  in Danish is "));
> setlocale ("LC_ALL", "da");
> print (strftime ("%A.\n"));
> ?>
> 
> this should give me "Friday in Danish is Fredag" but no matter
> what I set the languagecode to it always returns "Friday"
> 
> Why?

I don't know, but I thought that I'd quickly try it out on my machine,
and I found the same problem.

Cheers,
Ben

--
~~
Ben Richardson   [EMAIL PROTECTED]

Any attempt to brew coffee with a teapot should result
in the error code "418 I'm a teapot".  The resulting
entity body MAY be short and stout.
~~

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: PHP 4 on OSX 10.1.2

2002-01-19 Thread Andrew White

On Saturday, January 19, 2002, at 03:58  am, Ben Richardson wrote:

> this should give me "Friday in Danish is Fredag" but no matter
> what I set the languagecode to it always returns "Friday"
>
> Why?

Because locale support in libc on Mac OS X is broken. There isn't even a 
/usr/share/locale/da for starters and the locales that are there just have 
LC_MESSAGES, nothing else.

I guess not much attention has been paid to this bug since Mac OS X has 
its own method of localization and multi-lingual support which goes beyond 
what's available with setlocale.

Somebody did port libxpg4 from FreeBSD3.x but I'm not sure how you go 
about getting php to use that instead of the built in libc. See the 
following message for more details:



Andrew


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]