summaryrefslogtreecommitdiff
path: root/navit/graphics
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-06-30 09:31:36 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-06-30 09:31:36 +0000
commit9584527c94f04cf122392c57788670c9a39c5fcf (patch)
tree81fcd9348d031c5977dd9014e88c09c96d04e04f /navit/graphics
parentb152335b45ebb8b9a816179416a96f6c35b3b160 (diff)
downloadnavit-9584527c94f04cf122392c57788670c9a39c5fcf.tar.gz
Fix:graphics_gtk_drawing_area:Force sane locale
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4555 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/graphics')
-rw-r--r--navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c b/navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c
index 38666f344..ba54011aa 100644
--- a/navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c
+++ b/navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c
@@ -24,6 +24,7 @@
#include <sys/time.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
+#include <locale.h> /* For WIN32 */
#if !defined(GDK_Book) || !defined(GDK_Calendar)
#include <X11/XF86keysym.h>
#endif
@@ -1239,5 +1240,8 @@ plugin_init(void)
{
gtk_init(&gtk_argc, &gtk_argv);
gtk_set_locale();
+#ifdef HAVE_API_WIN32
+ setlocale(LC_NUMERIC, "C"); /* WIN32 gtk resets LC_NUMERIC */
+#endif
plugin_register_graphics_type("gtk_drawing_area", graphics_gtk_drawing_area_new);
}