# HG changeset patch # User Richard Laager # Date 1136310770 0 # Node ID 9c2a4e327718e23cddd2f465f851cbea8020a5a9 # Parent 18e619ed4eaf1c16bde918d51fdad11116a161bc [gaim-migrate @ 15040] trex005 found a bug. Essentially, one can't assume a unichar is a char. It's fixed now. committer: Tailor Script diff -r 18e619ed4eaf -r 9c2a4e327718 plugins/spellchk.c --- a/plugins/spellchk.c Tue Jan 03 13:55:42 2006 +0000 +++ b/plugins/spellchk.c Tue Jan 03 17:52:50 2006 +0000 @@ -121,11 +121,15 @@ static gchar * make_word_proper(const gchar *word) { - gchar *state = g_utf8_strdown(word, -1); + char buf[7]; + gchar *lower = g_utf8_strdown(word, -1); + gchar *ret; - state[0] = g_unichar_toupper(g_utf8_get_char(word)); + g_unichar_to_utf8(g_unichar_toupper(g_utf8_get_char(word)), buf); + ret = g_strconcat(buf, g_utf8_offset_to_pointer(lower, 1), NULL); + g_free(lower); - return state; + return ret; } static gboolean