Re: decimal separator for numbers in gtk+-2.x (help!)



On Wed, 24 Dec 2003, domi wrote:

Hi all !

I upgrade my application from gtk-1.2.8 to gtk-2.2.4, and I am stopped by a
stupid problem: the decimal separator is now by default a "," instead of a
"."

It comes from your locale.

the consequences are catastrophic : the scanf(), or sscanf() function are not
able now to read files containing always number with "." as decimal
separator.

g_strtod knows how to handle that.

Where can I change this setting ?


Start your application with LC_NUMERIC=en_US.utf-8.

I tried to change the decimal separator in the Center of configuration KDE,
but it has no effects on the scanf() functions !

If someone can help me ..

Dominique Reymond

behdad



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]