[uim-commit] r543 - trunk/helper

makeinu at freedesktop.org makeinu at freedesktop.org
Sat Feb 5 01:39:25 PST 2005


Author: makeinu
Date: 2005-02-05 01:39:16 -0800 (Sat, 05 Feb 2005)
New Revision: 543

Modified:
   trunk/helper/toolbar-systray-gtk.c
Log:
* toolbar-systray-gtk.c: set locale.


Modified: trunk/helper/toolbar-systray-gtk.c
===================================================================
--- trunk/helper/toolbar-systray-gtk.c	2005-02-05 09:20:43 UTC (rev 542)
+++ trunk/helper/toolbar-systray-gtk.c	2005-02-05 09:39:16 UTC (rev 543)
@@ -35,6 +35,7 @@
 #  include <config.h>
 #endif
 
+#include <locale.h>
 #include "uim/gettext.h"
 #include "uim/uim.h"
 #include <gtk/gtk.h>
@@ -48,6 +49,11 @@
   GtkWidget *icon;
   EggTrayIcon *tray;
 
+  setlocale(LC_ALL, "");
+  bindtextdomain( PACKAGE, LOCALEDIR );
+  textdomain( PACKAGE );
+  bind_textdomain_codeset( PACKAGE, "UTF-8");
+
   gtk_set_locale();
   
   uim_init();



More information about the Uim-commit mailing list