aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index a720e91..6d4fcfc 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2,6 +2,8 @@
#include "config.h"
#endif
+#include <locale.h>
+
#ifdef HAVE_X11_XLIB_H
#include <X11/Xlib.h>
#endif
@@ -127,6 +129,14 @@ main(int argc, char *argv[])
GtkBuilder *builder;
GtkAdjustment *adj;
+ /* FIXME: support internationalization instead of enforcing English */
+#ifdef __WIN32__
+ g_setenv("LC_ALL", "English", TRUE);
+#else
+ g_setenv("LC_ALL", "en", TRUE);
+#endif
+ setlocale(LC_ALL, "");
+
/* init threads */
#ifdef HAVE_X11_XLIB_H
XInitThreads(); /* FIXME: really required??? */