mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 11:12:11 +01:00
correctly fetch the current locale, fix from owen.
Sun Jan 9 13:28:36 2000 Tim Janik <timj@gtk.org> * gstrfuncs.c (g_strtod): correctly fetch the current locale, fix from owen.
This commit is contained in:
parent
bb4b0d6cc9
commit
5581fb1f27
@ -1,3 +1,8 @@
|
|||||||
|
Sun Jan 9 13:28:36 2000 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gstrfuncs.c (g_strtod): correctly fetch the current locale,
|
||||||
|
fix from owen.
|
||||||
|
|
||||||
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* configure.in: Make the test for getpwuid_r work on newer AIX
|
* configure.in: Make the test for getpwuid_r work on newer AIX
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Sun Jan 9 13:28:36 2000 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gstrfuncs.c (g_strtod): correctly fetch the current locale,
|
||||||
|
fix from owen.
|
||||||
|
|
||||||
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* configure.in: Make the test for getpwuid_r work on newer AIX
|
* configure.in: Make the test for getpwuid_r work on newer AIX
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Sun Jan 9 13:28:36 2000 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gstrfuncs.c (g_strtod): correctly fetch the current locale,
|
||||||
|
fix from owen.
|
||||||
|
|
||||||
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* configure.in: Make the test for getpwuid_r work on newer AIX
|
* configure.in: Make the test for getpwuid_r work on newer AIX
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Sun Jan 9 13:28:36 2000 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gstrfuncs.c (g_strtod): correctly fetch the current locale,
|
||||||
|
fix from owen.
|
||||||
|
|
||||||
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* configure.in: Make the test for getpwuid_r work on newer AIX
|
* configure.in: Make the test for getpwuid_r work on newer AIX
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Sun Jan 9 13:28:36 2000 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gstrfuncs.c (g_strtod): correctly fetch the current locale,
|
||||||
|
fix from owen.
|
||||||
|
|
||||||
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* configure.in: Make the test for getpwuid_r work on newer AIX
|
* configure.in: Make the test for getpwuid_r work on newer AIX
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Sun Jan 9 13:28:36 2000 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gstrfuncs.c (g_strtod): correctly fetch the current locale,
|
||||||
|
fix from owen.
|
||||||
|
|
||||||
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* configure.in: Make the test for getpwuid_r work on newer AIX
|
* configure.in: Make the test for getpwuid_r work on newer AIX
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Sun Jan 9 13:28:36 2000 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gstrfuncs.c (g_strtod): correctly fetch the current locale,
|
||||||
|
fix from owen.
|
||||||
|
|
||||||
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* configure.in: Make the test for getpwuid_r work on newer AIX
|
* configure.in: Make the test for getpwuid_r work on newer AIX
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Sun Jan 9 13:28:36 2000 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gstrfuncs.c (g_strtod): correctly fetch the current locale,
|
||||||
|
fix from owen.
|
||||||
|
|
||||||
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* configure.in: Make the test for getpwuid_r work on newer AIX
|
* configure.in: Make the test for getpwuid_r work on newer AIX
|
||||||
|
@ -200,9 +200,11 @@ g_strtod (const gchar *nptr,
|
|||||||
{
|
{
|
||||||
gchar *old_locale;
|
gchar *old_locale;
|
||||||
|
|
||||||
old_locale = setlocale (LC_NUMERIC, "C");
|
old_locale = g_strdup (setlocale (LC_NUMERIC, NULL));
|
||||||
|
setlocale (LC_NUMERIC, "C");
|
||||||
val_2 = strtod (nptr, &fail_pos_2);
|
val_2 = strtod (nptr, &fail_pos_2);
|
||||||
setlocale (LC_NUMERIC, old_locale);
|
setlocale (LC_NUMERIC, old_locale);
|
||||||
|
g_free (old_locale);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!fail_pos_1 || fail_pos_1[0] == 0 || fail_pos_1 >= fail_pos_2)
|
if (!fail_pos_1 || fail_pos_1[0] == 0 || fail_pos_1 >= fail_pos_2)
|
||||||
|
@ -200,9 +200,11 @@ g_strtod (const gchar *nptr,
|
|||||||
{
|
{
|
||||||
gchar *old_locale;
|
gchar *old_locale;
|
||||||
|
|
||||||
old_locale = setlocale (LC_NUMERIC, "C");
|
old_locale = g_strdup (setlocale (LC_NUMERIC, NULL));
|
||||||
|
setlocale (LC_NUMERIC, "C");
|
||||||
val_2 = strtod (nptr, &fail_pos_2);
|
val_2 = strtod (nptr, &fail_pos_2);
|
||||||
setlocale (LC_NUMERIC, old_locale);
|
setlocale (LC_NUMERIC, old_locale);
|
||||||
|
g_free (old_locale);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!fail_pos_1 || fail_pos_1[0] == 0 || fail_pos_1 >= fail_pos_2)
|
if (!fail_pos_1 || fail_pos_1[0] == 0 || fail_pos_1 >= fail_pos_2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user