comparison pidgin/gtkimhtml.c @ 19260:6ae4e6996c9f

Thanks sadrul. Fixes #2277
author Sean Egan <seanegan@gmail.com>
date Sat, 11 Aug 2007 17:24:37 +0000
parents d9692b58ac2c
children 88c6bf371abb
comparison
equal deleted inserted replaced
19185:cdb0fbe5de7b 19260:6ae4e6996c9f
2151 while(*e) { 2151 while(*e) {
2152 if((c = purple_markup_unescape_entity(e, &len))) { 2152 if((c = purple_markup_unescape_entity(e, &len))) {
2153 ret = g_string_append(ret, c); 2153 ret = g_string_append(ret, c);
2154 e += len; 2154 e += len;
2155 } else { 2155 } else {
2156 ret = g_string_append_c(ret, *e); 2156 gunichar uni = g_utf8_get_char(e);
2157 e++; 2157 ret = g_string_append_unichar(ret, uni);
2158 e = g_utf8_next_char(e);
2158 } 2159 }
2159 } 2160 }
2160 2161
2161 g_free(val); 2162 g_free(val);
2162 2163