Re: format number on gtklabel
- From: Sven Neumann <sven gimp org>
- To: Paul Davis <paul linuxaudiosystems com>
- Cc: gtk-list gnome org, Roger Leigh <rleigh whinlatter ukfsn org>
- Subject: Re: format number on gtklabel
- Date: Wed, 16 Feb 2005 13:03:55 +0100
Hi,
Paul Davis <paul linuxaudiosystems com> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]