Comment 52 for bug 10713

Revision history for this message
Panagiotis Minos (pminos) wrote :

Spelling suggestion for Greek words have been stopped working for several months because in the file "gtkhtml/htmlengine.c", function "html_engine_spell_word_is_valid", the following code returns a gunichar but the result is truncated to gchar.

prev = html_cursor_get_prev_char (e->cursor);
curr = html_cursor_get_current_char (e->cursor);

This means that the spelling suggestions should stop working for all words that contain Non-ASCII Characters.

the local variables gchar prev, curr;
must be replaced by gunichar prev, curr;

I have tested this on Ubuntu 9.04 (jaunty) and it seems to work.

I will attach a patch.