[SRU] Enchant-2 does not work properly with backends that want a NUL-terminated string
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
enchant-2 (Debian) |
Fix Released
|
Unknown
|
|||
enchant-2 (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Focal |
Fix Released
|
Low
|
Timo Jyrinki | ||
Groovy |
Fix Released
|
Low
|
Timo Jyrinki |
Bug Description
[Impact]
Spell checking / spelling error highlighting does not work properly in eg gedit, gnote or gtranslator when using a language which uses Voikko (often Finnish, but also North Sámi (giella-sme package) or user installed HFST spellers like other Sámi languages or Greenlandic) or Zemberek (Turkish) backend via Enchant-2.
[Test Case]
(from https:/
1. apt install libenchant-2-voikko voikko-fi
2. Run gedit, gnote, gtranslator or other gspell using program
3. (in gedit) Enable underlining of incorrectly typed words, and set Finnish (suomi) as language
4. Copy-paste for example "tämä on testitekstiä" ("this is test text"), maybe for a comparison "tämmä on vihre" (1st and 3rd word incorrect)
5. Note how everything is underlined - in suggestions, you can choose the same word and the underlining disappears, but as soon as you eg "leave" the word (press space after it) it gets underlined again. However, if doing manual spell checking the words are correctly understood as being correct.
[Where problems could occur]
The patch changes code in voikko and zemberek plugins, which are built and shipped separately. Zemberek is not built at all in Debian or Ubuntu. Thus, no changes (or problems) should be possible to happen outside the Voikko plugin (libenchant-
Voikko plugin would be good to test via multiple libraries like gspell, gtkspell, sonnet that there are no regressions.
--- original report ---
This shows up particularly with the inline checking feature of gspell in eg gedit which is part of the default Ubuntu installation.
The issue is fixed in Enchant 2.2.12, and after that release reaches Debian and Ubuntu hirsute, I hope a backport of this patch to https:/
SRU paperwork to be added later, but in general all backends would be good to test after the backport in various ways like gspell, sonnet.
description: | updated |
summary: |
- Enchant-2 does not work properly with backends that want a NUL- + [SRU] Enchant-2 does not work properly with backends that want a NUL- terminated string |
description: | updated |
Changed in enchant-2 (Ubuntu Focal): | |
importance: | Undecided → Low |
Changed in enchant-2 (Ubuntu Groovy): | |
importance: | Undecided → Low |
Changed in enchant-2 (Ubuntu Focal): | |
status: | New → Fix Committed |
Changed in enchant-2 (Ubuntu Groovy): | |
status: | New → Fix Committed |
Changed in enchant-2 (Ubuntu Focal): | |
assignee: | nobody → Timo Jyrinki (timo-jyrinki) |
Changed in enchant-2 (Ubuntu Groovy): | |
assignee: | nobody → Timo Jyrinki (timo-jyrinki) |
Changed in enchant-2 (Debian): | |
status: | Unknown → Fix Released |
Thanks, I did the upload to Debian and it's going to autosync to hirsute. If you want a SRU of the fix it would be useful to describe a real world problem or testcase that the update or selected fix would resolve...