Fox and numeric conversions depending on locale (LC_NUMERIC)

View: New views
1 Messages — Rating Filter:   Alert me  

Fox and numeric conversions depending on locale (LC_NUMERIC)

by Axel Schmidt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The standard locale in FOX applications  is the user-default ANSI code page obtained from the operating system, except for the numerical stuff. This is configured in the FXApp.cpp:

  setlocale(LC_ALL,"");            // user default. e.g. german
  setlocale(LC_NUMERIC,"C");   // normal C behaviour

So, my question is, has anybody changed the numeric locale settings to an other value. I want to write a german specific application, since my users are germans and they are irritated, if they have to enter a decimal value like a english person (german = 1.000,00, english= 1,000.00).

When I change the numeric locale to german, I can enter numeric values correctly in german format via FXTextField/FXDataTarget mechanism. I have proofed this, but are there any dependencies, which I have to look for, too?

Has anybody experience ???
Thanks in advance for your answer.