Bug 190151 - Spell Checking in XEmacs broken for German Language
Spell Checking in XEmacs broken for German Language
Product: Fedora
Classification: Fedora
Component: xemacs-sumo (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ville Skyttä
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2006-04-28 03:32 EDT by Mirko Streckenbach
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version: 20060510-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-05-13 03:51:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Potential fixed ispell.el (138.19 KB, text/plain)
2006-04-29 15:45 EDT, Ville Skyttä
no flags Details

  None (edit)
Description Mirko Streckenbach 2006-04-28 03:32:10 EDT
Description of problem:

XEmacs spell-checking for dictionary deusch8 broken.

Version-Release number of selected component (if applicable):


How reproducible:

Spell check a word with german umlaut using the "deutsch8" dictionary

Steps to Reproduce:
1. Start XEmacs, execute "ispell-change-dictionary deutsch8".
2. Enter a word with german umlaut, e.g. hämmert
3. Press M-$ to check it.
Actual results:

Error Message "ISpell and its process have different character maps."

Expected results:

Correct checking of the word

Additional info:

Obviously xemacs was broken by the newer aspell version.
Older aspell versions always used iso-8859-1 communication, regardless
of locale or coding-system of the buffer. 

The current version expects communication in the current locale, but xemacs
tries latin1 communication.

I fixed it, by makeing xemacs call "aspell --encoding=iso-8859-1" as a
wordaround, but I think the right way would be to fix ispell.el.
Comment 1 Ville Skyttä 2006-04-29 15:45:47 EDT
Created attachment 128399 [details]
Potential fixed ispell.el

Reproduced.  I'm considering applying the patch below to the next xemacs-sumo
release for FC5+.  Complete ispell.el replacement also attached, it'd be cool
if you could test that (by dropping it to
/usr/share/xemacs/xemacs-packages/lisp/ispell/ or
~/.xemacs/.xemacs/xemacs-packages/lisp/ispell) and let me know if it works for

--- ispell.el~ 2005-10-16 19:47:08.000000000 +0300
+++ ispell.el  2006-04-29 22:42:03.000000000 +0300
@@ -2249,6 +2249,12 @@
			    (expand-file-name ispell-personal-dictionary)))))
     (setq args (append args ispell-extra-args))

+    ;; Fix encoding with aspell >= 0.60 (and blindly assume it's >= 0.60
+    ;; if it looks like aspell :P)
+    (when (string-match "^aspell" (file-name-nondirectory
ispell-program-name))+	    (add-to-list
+	'args (concat "--encoding=" (symbol-name (ispell-get-coding-system)))))

     (if ispell-async-processp
	(let ((process-connection-type ispell-use-ptys-p))
	  (apply 'start-process
Comment 2 Mirko Streckenbach 2006-05-02 01:48:36 EDT
Yes, that works for me.

Thanks for the quick solution.
Comment 3 Ville Skyttä 2006-05-13 03:51:33 EDT
Fixed in 20060510-1.

Note You need to log in before you can comment on or make changes to this bug.