aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2008-06-05 09:22:37 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2008-06-05 09:22:37 +0000
commit6ba65c2327dac6a587e594321e5de7bd5eaa91e2 (patch)
tree572d11613abe1288141c406c86b3e0684411a04a
parent0cbec91fdf8683919bf762f642c41ca5093aa7af (diff)
fixed some character corruption with ...utf8 locale string.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2004 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.ja5
-rw-r--r--libsylph/codeconv.c2
3 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 02f0d104..aa9b887b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-06-05
+ * libsylph/codeconv.c: conv_get_locale_charset(): recognize "utf8"
+ in locale strings as UTF-8 (fixes some character corruption).
+
+2008-06-05
+
* libsylph/procmime.c: procmime_scan_encoding(): fixed
Content-Transfer-Encoding with comments.
diff --git a/ChangeLog.ja b/ChangeLog.ja
index e053d068..1d8665ee 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,5 +1,10 @@
2008-06-05
+ * libsylph/codeconv.c: conv_get_locale_charset(): ロケール文字列中の
+ "utf8" を UTF-8 として認識するようにした(一部の文字化けを修正)。
+
+2008-06-05
+
* libsylph/procmime.c: procmime_scan_encoding(): コメント付きの
Content-Transfer-Encoding を修正。
diff --git a/libsylph/codeconv.c b/libsylph/codeconv.c
index 194c245e..6408372d 100644
--- a/libsylph/codeconv.c
+++ b/libsylph/codeconv.c
@@ -1898,7 +1898,7 @@ CharSet conv_get_locale_charset(void)
return cur_charset;
}
- if (strcasestr(cur_locale, "UTF-8")) {
+ if (strcasestr(cur_locale, "UTF-8") || strcasestr(cur_locale, "utf8")) {
cur_charset = C_UTF_8;
return cur_charset;
}