[XForms] dot vs. comma (0.88 vs. 1.0.x)

Bernd Hahnebach newsletter at hahnebach.com
Sat May 29 09:51:05 EDT 2004


It does not get rid of my problem. LC_NUMERIC or ALL seams
not to be problem. Nothing changes it does not matter what I use.

It is about all numbers in the whole program.
e.g.: input data (it does piiiiep if I try to input a dot), output on 
screen,
output to file, there is coordinate system with numbers on screen....
All numbers have a comma respectively a dot using LANG=C

I read man page of setlocale and locale (Thanks, I did not know about.)
but could not find something that helps.

Bernd

sitting in front of my computer and look for the big hammer ;-)



Jens Thoms Toerring schrieb:

>To subscribers of the xforms list
>
>
>On Fri, May 28, 2004 at 09:06:11PM +0200, Bernd Hahnebach wrote:
>  
>
>>added to main.c:
>>
>>#include <locale.h>
>>
>>and directly under:   fl_initialize(&argc,argv,version,0,0); 
>>setlocale( LC_NUMERIC, "C" );
>>
>>XStab compiles but it still does commas instead of dots.
>>
>>I did the other way around just to have success. Using
>>LANG=en_US before starting XStab works. Only dots dots dots :-)
>>
>>I don't want to bother you, but I still would like to find a solution.
>>    
>>
>
>In what context do the commata (or commas or what's the correct
>plural of comma in English?) appear instead of dots? If you have
>a look at the man page for setlocale() you'll see that there
>several other categories you could set beside LC_NUMERIC (which
>I set exclusively because I don't care about the rest). Perhaps
>you get better results when you use instead
>
>setlocale( LC_ALL, "C" );
>
>That should take care of all categories and hopefully get rid of
>your problem.
>                                Regards, Jens
>  
>



More information about the Xforms mailing list