Re: code work wrong when i put it in gtk+ application



The radix is locale dependent. ÂYou will need to set a C locale.

To be more specific, call setlocale(LC_NUMERIC, "C")

GTK+ calls setlocale(LC_ALL, "") for you automatically in gtk_init()
unless you call gtk_disable_setlocale() first.

Read your C library's documentation to learn about setlocale().

--tml



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