[Mono-dev] Invariant Culture question
monoman at gmail.com
Mon Jun 19 18:15:07 EDT 2006
AFAIK, that works correctly in Mono also.
But beware that culture is a thread-specific setting, you may be doing
something on a thread spawned and set to another culture. Particularly
you may experience a timing problem, if a thread is created before the
main thread has it's culture set to the local one in the runtime
initialization code, what is a possible scenario when mono is
I think some other people may help you more than me at the moment, as
I currently have no time to dig the details by looking at Mono source.
On 6/19/06, Cory Foy <usergroup at cornetdesign.com> wrote:
> Hi Rafael,
> Thanks for the reply. Comments inline:
> 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.
> If not, we'll just platform exclude the tests.
> Thanks again!
> Cory Foy
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
Rafael "Monoman" Teixeira
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man." George Bernard Shaw
More information about the Mono-devel-list