aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-10-03 09:08:38 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-10-03 09:08:38 +0000
commit088996e8eca01a4757a4645fde51f249f85a1184 (patch)
treef99189460867b7e30cb3540c790dbb821cfe708a /src/main.c
parentb41a0d98336728e13c55170c8f5c6a2eb2825e9d (diff)
win32: fixed not-working translation on non-ascii directory.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@619 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index d4410300..27f6b460 100644
--- a/src/main.c
+++ b/src/main.c
@@ -379,6 +379,18 @@ static void app_init(void)
locale_dir = g_strconcat(startup_dir, G_DIR_SEPARATOR_S,
LOCALEDIR, NULL);
+#ifdef G_OS_WIN32
+ {
+ gchar *locale_dir_;
+
+ locale_dir_ = g_locale_from_utf8(locale_dir, -1,
+ NULL, NULL, NULL);
+ if (locale_dir_) {
+ g_free(locale_dir);
+ locale_dir = locale_dir_;
+ }
+ }
+#endif
bindtextdomain(PACKAGE, locale_dir);
g_free(locale_dir);
}