diff lisp/textmodes/ispell.el @ 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 aab1a93c03ca
children 5db60f420c85 53108e6cea98
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.