After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 559982 - sexyspellentry splits misspelled words incorrectly if there are non-ascii chars
sexyspellentry splits misspelled words incorrectly if there are non-ascii chars
Status: RESOLVED WONTFIX
Product: libsexy
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Libsexy Maintainers
Libsexy Maintainers
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2008-11-09 09:28 UTC by Serkan Kaba
Modified: 2014-08-30 13:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to fix the crash (1.86 KB, patch)
2009-05-17 12:34 UTC, Serkan Kaba
none Details | Review

Description Serkan Kaba 2008-11-09 09:28:24 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.
Comment 1 Serkan Kaba 2008-11-09 09:44:35 UTC
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)
Comment 2 Serkan Kaba 2008-11-09 10:06:15 UTC
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
Comment 3 Serkan Kaba 2008-11-10 21:35:47 UTC
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 "ş"
Comment 4 Serkan Kaba 2009-05-17 12:33:44 UTC
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.
Comment 5 Serkan Kaba 2009-05-17 12:34:39 UTC
Created attachment 134812 [details] [review]
patch to fix the crash
Comment 6 André Klapper 2014-08-30 13:20:07 UTC
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.