Re: commit: New AbiGOChart patch]

From: Jean Bréfort <jean.brefort_at_normalesup.org>
Date: Sat May 07 2005 - 15:57:35 CEST

Le samedi 07 mai 2005 à 06:48 -0700, Dom Lachowicz a écrit :
> Why on earth was something that was effectively
> *copied code* from UT_LocaleTransactor get committed?
>
> -Dom

We need to call go_setlocale instead of setlocale there. If you prefer,
it is possible to use just C code there:

char *old_num_locale, *old_monetary_locale;
old_num_locale = g_strdup (go_setlocale (LC_NUMERIC, NULL));
go_setlocale (LC_NUMERIC, "C");
old_monetary_locale = g_strdup (go_setlocale (LC_MONETARY, NULL));
go_setlocale (LC_MONETARY, "C");
...
go_setlocale (LC_MONETARY, old_monetary_locale);
g_free (old_monetary_locale);
go_setlocale (LC_NUMERIC, old_num_locale);
g_free (old_num_locale);

Jean
Received on Sat May 7 15:59:34 2005

This archive was generated by hypermail 2.1.8 : Sat May 07 2005 - 15:59:34 CEST