Reinhard Pagitsch wrote:

>Hello Steve,
>Steve Hay wrote:
>
>  
>
>>Bizarre.  What locale were you using before when you got -1?
>>
>> 
>>
>>    
>>
>I did not used setloale in the XS code or in the .pm file or test.pl.
>  
>
I'm not sure why you get -1 by default and I get -25 by default.  Maybe 
it doesn't understand your default locale, so falls back to C locale 
(which does indeed give -1, as noted in my previous mail)?

>  
>
>>If I call setlocale(LC_ALL, "German") (which returns 
>>"German_Germany.1252") then I still get -25.
>> 
>>
>>    
>>
>I am too.
>Try to set ret = setlocale( LC_ALL, "Austria" ); setlocale returns NULL 
>and stricmp -1.
>
Right.  That's because "Austria" isn't a recognised locale name so your 
locale is not changed and you still have the default behaviour.  If you 
set "dea" instead then you should get -25.  (Valid locale names are 
given in 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_crt_language_and_country_strings.asp).

- Steve


------------------------------------------------
Radan Computational Ltd.

The information contained in this message and any files transmitted with it are 
confidential and intended for the addressee(s) only.  If you have received this 
message in error or there are any problems, please notify the sender 
immediately.  The unauthorized use, disclosure, copying or alteration of this 
message is strictly forbidden.  Note that any views or opinions presented in 
this email are solely those of the author and do not necessarily represent 
those of Radan Computational Ltd.  The recipient(s) of this message should 
check it and any attached files for viruses: Radan Computational will accept no 
liability for any damage caused by any virus transmitted by this email.

Reply via email to