[Mono-dev] Invariant Culture question

Robert Jordan robertj at gmx.net
Tue Jun 20 07:05:34 EDT 2006


Hi Cory,

> Rafael Teixeira wrote:
>> Hi Cory, I think you have to study things a bit more.
>>
>> The Invariant Culture is an ECMA CLI (.NET) concept. Mono just has to
>> implement it to be compatible. It surely isn't Linux specific.
> 
> I apologize if I made it sound that way.
> 
> What I meant was that, on a 1.1 or 2.0 .NET install on Windows, the 
> culture is set, I assume, based on the culture settings of the computer. 
>   For example, to change the Culture on a Windows Smartphone, you have 
> to change it on the Smartphone itself.
> 
> So it seems like CultureInfo is picked up from the underlying system. 
> What I was wondering is a) if that was indeed correct and if so b) if 
> there is a way to get Mono to automatically pick it up as well.

The default CultureInfo is computed from the POSIX locale. Mono
is evaluating the LC_ALL and the LANG env vars (in this order).

Robert




More information about the Mono-devel-list mailing list