diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-10-03 09:08:38 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-10-03 09:08:38 +0000 |
commit | 088996e8eca01a4757a4645fde51f249f85a1184 (patch) | |
tree | f99189460867b7e30cb3540c790dbb821cfe708a /src/main.c | |
parent | b41a0d98336728e13c55170c8f5c6a2eb2825e9d (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.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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); } |