Mercurial > pidgin.yaz
comparison libpurple/protocols/yahoo/util.c @ 28593:7c33fccedea8 2.6.2_jp1
Fix Yahoo Japan's buddy list problem: buddies don't become online if
they belong to the group which name has Japanese character.
author | Konosuke Watanabe <sasugaanija@gmail.com> |
---|---|
date | Wed, 09 Sep 2009 03:01:04 +0900 |
parents | 4a2adf413aaa |
children | 291c89bfe040 |
comparison
equal
deleted
inserted
replaced
28592:493f48f8d17f | 28593:7c33fccedea8 |
---|---|
156 ret = sanitize_utf((gchar *)str, strlen((gchar *)str), &newlen); | 156 ret = sanitize_utf((gchar *)str, strlen((gchar *)str), &newlen); |
157 if (g_utf8_validate(ret, -1, NULL)) | 157 if (g_utf8_validate(ret, -1, NULL)) |
158 return ret; | 158 return ret; |
159 } | 159 } |
160 | 160 |
161 if (yd->jp && !utf8) | 161 if (yd->jp) |
162 from_codeset = "SHIFT_JIS"; | 162 from_codeset = "UTF-8"; |
163 else | 163 else |
164 from_codeset = purple_account_get_string(purple_connection_get_account(gc), "local_charset", "ISO-8859-1"); | 164 from_codeset = purple_account_get_string(purple_connection_get_account(gc), "local_charset", "ISO-8859-1"); |
165 | 165 |
166 ret = g_convert_with_fallback(str, -1, "UTF-8", from_codeset, NULL, NULL, NULL, NULL); | 166 ret = g_convert_with_fallback(str, -1, "UTF-8", from_codeset, NULL, NULL, NULL, NULL); |
167 | 167 |