diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-08-07 07:40:39 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-08-07 07:40:39 +0000 |
commit | 9689e0699f2dc4074fcae3009a67afe3c4e260c0 (patch) | |
tree | b42df9d05fee85c0c7c281a6a3231e519d113e88 /src | |
parent | 3c7939dce9e5183999e0923d8dbd2a9c85ace112 (diff) |
some fixes for Win32.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@474 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/codeconv.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/codeconv.c b/src/codeconv.c index c135b19c..470b5e13 100644 --- a/src/codeconv.c +++ b/src/codeconv.c @@ -1214,7 +1214,11 @@ static const struct { {"ja_JP.ujis" , C_EUC_JP , C_ISO_2022_JP}, {"ja_JP.SJIS" , C_SHIFT_JIS , C_ISO_2022_JP}, {"ja_JP.JIS" , C_ISO_2022_JP , C_ISO_2022_JP}, +#ifdef G_OS_WIN32 + {"ja_JP" , C_SHIFT_JIS , C_ISO_2022_JP}, +#else {"ja_JP" , C_EUC_JP , C_ISO_2022_JP}, +#endif {"ko_KR.EUC-KR" , C_EUC_KR , C_EUC_KR}, {"ko_KR" , C_EUC_KR , C_EUC_KR}, {"zh_CN.GB2312" , C_GB2312 , C_GB2312}, @@ -1594,10 +1598,14 @@ const gchar *conv_get_current_locale(void) static const gchar *cur_locale; if (!cur_locale) { +#ifdef G_OS_WIN32 + cur_locale = g_win32_getlocale(); +#else cur_locale = g_getenv("LC_ALL"); if (!cur_locale) cur_locale = g_getenv("LC_CTYPE"); if (!cur_locale) cur_locale = g_getenv("LANG"); if (!cur_locale) cur_locale = setlocale(LC_CTYPE, NULL); +#endif /* G_OS_WIN32 */ debug_print("current locale: %s\n", cur_locale ? cur_locale : "(none)"); |