diff --git a/ChangeLog b/ChangeLog index e21d9bb7d..f9c8761e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-07-02 Jody Goldberg + + http://bugzilla.gnome.org/show_bug.cgi?id=116568 + * gnome-settings-daemon/gnome-settings-xsettings.c + (gnome_xft_settings_set_xresources) : generate values in locale C + 2003-06-27 Richard Hult * typing-break/drw-intl.h: Remove this and use gnome-i18n.h diff --git a/gnome-settings-daemon/gnome-settings-xsettings.c b/gnome-settings-daemon/gnome-settings-xsettings.c index a19bdbcfa..55cc51545 100644 --- a/gnome-settings-daemon/gnome-settings-xsettings.c +++ b/gnome-settings-daemon/gnome-settings-xsettings.c @@ -3,6 +3,7 @@ #include #include #include +#include #include "gnome-settings-daemon.h" #include "gnome-settings-xsettings.h" @@ -348,7 +349,9 @@ gnome_xft_settings_set_xresources (GnomeXftSettings *settings) { char *add[] = { "xrdb", "-merge", NULL }; GString *add_string = g_string_new (NULL); + char *old_locale = g_strdup (setlocale (LC_NUMERIC, NULL)); + setlocale (LC_NUMERIC, "C"); g_string_append_printf (add_string, "Xft.dpi: %f\n", settings->dpi / 1024.); g_string_append_printf (add_string, @@ -363,6 +366,8 @@ gnome_xft_settings_set_xresources (GnomeXftSettings *settings) gnome_settings_daemon_spawn_with_input (add, add_string->str); g_string_free (add_string, TRUE); + setlocale (LC_NUMERIC, old_locale); + g_free (old_locale); } /* We mirror the Xft properties both through XSETTINGS and through