changeset 19260:6ae4e6996c9f

Thanks sadrul. Fixes #2277
author Sean Egan <seanegan@gmail.com>
date Sat, 11 Aug 2007 17:24:37 +0000
parents cdb0fbe5de7b
children 88c6bf371abb
files pidgin/gtkimhtml.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkimhtml.c	Sat Aug 11 13:37:14 2007 +0000
+++ b/pidgin/gtkimhtml.c	Sat Aug 11 17:24:37 2007 +0000
@@ -2153,8 +2153,9 @@
 			ret = g_string_append(ret, c);
 			e += len;
 		} else {
-			ret = g_string_append_c(ret, *e);
-			e++;
+			gunichar uni = g_utf8_get_char(e);
+			ret = g_string_append_unichar(ret, uni);
+			e = g_utf8_next_char(e);
 		}
 	}