Re: setlocale & gtk

On Tue, Sep 01, 2009 at 04:17:37PM -0400, Allin Cottrell wrote:
On Tue, 1 Sep 2009, Tomas Soltys wrote:

I forgot to write that this behaviour apply only on Windows not on Linux.

Recently I have ran into a problem with locale settings.

1. I need my application to have disabled locale settings. This is mainly
for the number representation.

If that's all you're really worried about:

setlocale(LC_NUMERIC, "C");

Or, more likely, use g_ascii_strtod() and related functions where
necessary (reading and writing numbers from and to text formats).


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