2003-07-02  Jody Goldberg <jody@gnome.org>

	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
This commit is contained in:
Jody Goldberg 2003-07-02 21:31:06 +00:00 committed by Jody Goldberg
parent 1e8849a9dd
commit deac1194de
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2003-07-02 Jody Goldberg <jody@gnome.org>
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 <richard@imendio.com>
* typing-break/drw-intl.h: Remove this and use gnome-i18n.h

View file

@ -3,6 +3,7 @@
#include <stdio.h>
#include <glib.h>
#include <libgnome/gnome-i18n.h>
#include <locale.h>
#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