Re: format number on gtklabel

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

 



Hi,

Paul Davis <paul@xxxxxxxxxxxxxxxxxxxxx> writes:

>>  #include <locale.h>
>>  setlocale(LC_ALL, "");
>
> as noted by someone else, this is a very very unfriendly thing to do
> unless it is restricted to places where you are doing
> "serialization" (ie. saving state to disk)

If you are doing serialization, you wouldn't change the locale but use
the locale-independent functions provided by glib (g_ascii_strtod and
g_ascii_dtostr).


Sven
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux