Red Hat Bugzilla – Bug 1262755
[fix available] bad UTF-8 char count in pipe mode
Last modified: 2016-11-03 20:06:05 EDT
Description of problem: When using emacs / hunspell to spell-check a UTF-8 encoded text file, emacs chokes on some accented letters, with the error message:
Starting new Ispell process [/usr/bin/hunspell::default] ...
Spell-checking testfile-fails using hunspell with default dictionary...done
ispell-process-line: Ispell misalignment: word `occuring' point 8; probably incompatible versions
Version-Release number of selected component (if applicable):
How reproducible: Always
Steps to Reproduce:
1.Open attached file in emacs.
2."M-x ispell" to perform a full spell check using hunspell.
Actual results: Spell check fails with error message "Ispell misalignment: word `occuring' point 8; probably incompatible versions".
Expected results: Spell check completes as expected, notes misspelled word, and offers correction suggestions.
Additional info: Extremely inconvenient bug for international users who use emacs to compose documents in multibyte languages. Such users are currently unable to spell check.
Created attachment 1073139 [details]
testfile for reproducing issue
Load the test file with emacs and run the command "M-x ispell"
I have to find out a fix for it.
I didn't inform upstream yet whether it is solved already.
What do you have a hunspell version?
I have already informed upstream about it http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21482
From the upstream:
Emacs 24.5 gets the necessary information about the encoding used by
each Hunspell dictionary from the dictionaries themselves. In
previous versions of Emacs you needed to set up
ispell-dictionary-alist manually with the correct information about
I will try to compare ispell.el between version 24.3 and 24.5 but I guess that backport is not going to be so easy.
I guess that ispell-dictionary-alist is better solution.
Following is the upstream bug report for the issue:
It also contains the patches which can probably be backported to fix the issue.
Thanks & Regards,
Upstream informed me that hunspell has a patch for it.
Patch for it is here https://debbugs.gnu.org/cgi/bugreport.cgi?bug=7781#31
Reassigning to hunspell.
this is in place in fedora, but not rhel
As per your comment #13, this bug wont be fixed in RHEL7.3. But on the contrary, I see the devel_ack is "+" as well, which ideally ensures, this bug will get fixed in RHEL7.3.
Its a bit confusing for us. Please help us and clarify a bit.
In case this bug get fixed in RHEL7.3, we need to move the relevant erratum (Comment #18) from REL_PREP to NEW_FILE, in order to let you add this bug into that erratum. Otherwise we don't need to change the errata status as of now.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.