[imp] setlocale() only works with xx_XX lang strings

Oliver Schulze L. oliver@samera.com.py
Thu, 20 Sep 2001 18:04:12 -0400


Maybe we can use something like:
// $language contains 'es', use 'es_ES' in serlocale()
setlocale('LC_ALL', $language . '_' . strtoupper($language));
fo now on Linux.

Thanks
Oliver

Jon Parise wrote:

>On Thu, Sep 20, 2001 at 03:24:45AM -0400, Oliver Schulze L. wrote:
>
>>Is this normal behavior of the setlocale() function?
>>
> 
>Right.  The behavior of setlocale() is a function of your system.
>I've heard reports of different Unices / Linux distributions
>acting differently in this respect.
>

-- 
Oliver Schulze L.
oliver@samera.com.py
Asuncion-Paraguay