[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: decimal separator for numbers in gtk+-2.x (help!)
- From: Behdad Esfahbod <behdad cs toronto edu>
- To: domi <reymond d labogeo pf>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: decimal separator for numbers in gtk+-2.x (help!)
- Date: Wed, 24 Dec 2003 03:23:17 -0500
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]