Mercurial > emacs
changeset 86952:583c3d4f0b79
Agustin Martin <agustin.martin at hispalinux.es>
(ispell-aspell-find-dictionary): Do not set encoding here.
(ispell-start-process): Explicitly set encoding here if using aspell.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sun, 02 Dec 2007 18:17:08 +0000 |
parents | a90136f4f908 |
children | 3508192ca0a3 |
files | lisp/textmodes/ispell.el |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/textmodes/ispell.el Sun Dec 02 18:05:57 2007 +0000 +++ b/lisp/textmodes/ispell.el Sun Dec 02 18:17:08 2007 +0000 @@ -981,7 +981,7 @@ "[^[:alpha:]]" (regexp-opt otherchars) t ; We can't tell, so set this to t - (list "-d" dict-name "--encoding=utf-8") + (list "-d" dict-name) nil ; aspell doesn't support this ;; Here we specify the encoding to use while communicating with ;; aspell. This doesn't apply to command line arguments, so @@ -2511,6 +2511,13 @@ (append args (list "-p" (expand-file-name ispell-current-personal-dictionary))))) + (if (and ispell-really-aspell + ispell-aspell-supports-utf8) + (setq args + (append args + (list + (concat "--encoding=" + (symbol-name (ispell-get-coding-system))))))) (setq args (append args ispell-extra-args)) ;; Initially we don't know any buffer's local words.