Comment 7 for bug 173524

Revision history for this message
Victor Ashik (vashik+) wrote : Re: ispell does not work in emacs22

Still cannot get ispell working with russian in emacs22 (hardy). I have emacs tuned to use aspell:

(custom-set-variables
 '(current-language-environment "UTF-8")
 '(default-input-method "russian-computer")
 '(x-select-enable-clipboard t)
)

(set-input-method "russian-computer" nil)

(setq-default ispell-program-name "aspell")
(setq ispell-dictionary "russian")
(setq flyspell-default-dictionary "russian")
(setq ispell-local-dictionary "russian")

When I do M-x ispell-buffer I get message "Spell-checking using aspell with russian dictionary done", but it found no mistakes.

I did strace of emacs and found the possible cause: it calls

 execve("/usr/bin/aspell", ["/usr/bin/aspell", "-a", "-m", "-d", "russian", "--encoding=koi8-r"], [/* 35 vars */]) = 0

, this is wrong if we use UTF-8.