GNOME Bugzilla – Bug 559982
sexyspellentry splits misspelled words incorrectly if there are non-ascii chars
Last modified: 2014-08-30 13:20:07 UTC
When a misspelled word ends with "ş" or "Ş" in Turkish unicode locale the words are splitted incorrectly. I was already experiencing it in xchat which uses an internal copy of SexySpellEntry and now experiencing it while writing a Java binding to it. Here's an example. When I type "yalnış doğru" yalnış is underlined as it's misspelled (It's correct spelling is "yanlış" and when I right click and ask for suggestions it looks for a suggestion for "yalnış d" and fails to find it. Details: Using xchat-2.8.6 Using Zemberek spellchecker backend in enchant-1.4.2 Using libsexy-0.1.11 for my bindings.
I also wanted to paste the error that I get with enchant when I'm exiting my SpellEdit test application. Exception in thread "main" org.gnome.glib.FatalError: (null)-CRITICAL enchant_dict_free_string_list: assertion `string_list' failed at org.gnome.gtk.GtkMain.gtk_main(Native Method) at org.gnome.gtk.GtkMain.main(GtkMain.java:56) at org.gnome.gtk.Gtk.main(Gtk.java:95) at Main.main(Main.java:23)
I also compiled and ran spell-entry example. When I type "yalnış doğru" and right click on yalnış to get suggestions it bails the following error but keeps running. ** (test-spell-entry:31043): CRITICAL **: enchant_dict_free_string_list: assertion `string_list' failed
I tested it with more strings and concluded that this happens when the incorrect string has multiple Turkish characters (I don't know if the issue can be generalized to non-ascii characters). So the issue has nothing specially to do with "Ş" nor "ş"
I fixed the crasher. The crash happens when the list suggestions is null. Because enchant_dict_free_suggestions is called even when the list is null though it expects a non-null list. Patch to fix the crasher will follow.
Created attachment 134812 [details] [review] patch to fix the crash
libsexy has not seen any releases since 2007: http://releases.chipx86.com/libsexy/libsexy/ and the homepage is down and I have no idea where one could find a codebase. So this project is not under active development anymore and it looks unlikely that there will be any further active development. Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this bug report in the future if anyone takes the responsibility for active development again.