diff options
| author | Glenn Morris | 2007-12-02 18:17:08 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-12-02 18:17:08 +0000 |
| commit | acf7984c5b5afe6d6c2c16d47bb9da9308624221 (patch) | |
| tree | 562d7d6af79a1038ff9aee52fe11db04c6dde030 | |
| parent | e05b1e72bec5633a06181487bc236c906a9e7657 (diff) | |
| download | emacs-acf7984c5b5afe6d6c2c16d47bb9da9308624221.tar.gz emacs-acf7984c5b5afe6d6c2c16d47bb9da9308624221.zip | |
Agustín Martín <agustin.martin at hispalinux.es>
(ispell-aspell-find-dictionary): Do not set encoding here.
(ispell-start-process): Explicitly set encoding here if using aspell.
| -rw-r--r-- | lisp/textmodes/ispell.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 444cf1985e8..7fb6aed139a 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -981,7 +981,7 @@ Assumes that value contains no whitespace." | |||
| 981 | "[^[:alpha:]]" | 981 | "[^[:alpha:]]" |
| 982 | (regexp-opt otherchars) | 982 | (regexp-opt otherchars) |
| 983 | t ; We can't tell, so set this to t | 983 | t ; We can't tell, so set this to t |
| 984 | (list "-d" dict-name "--encoding=utf-8") | 984 | (list "-d" dict-name) |
| 985 | nil ; aspell doesn't support this | 985 | nil ; aspell doesn't support this |
| 986 | ;; Here we specify the encoding to use while communicating with | 986 | ;; Here we specify the encoding to use while communicating with |
| 987 | ;; aspell. This doesn't apply to command line arguments, so | 987 | ;; aspell. This doesn't apply to command line arguments, so |
| @@ -2511,6 +2511,13 @@ Keeps argument list for future ispell invocations for no async support." | |||
| 2511 | (append args | 2511 | (append args |
| 2512 | (list "-p" | 2512 | (list "-p" |
| 2513 | (expand-file-name ispell-current-personal-dictionary))))) | 2513 | (expand-file-name ispell-current-personal-dictionary))))) |
| 2514 | (if (and ispell-really-aspell | ||
| 2515 | ispell-aspell-supports-utf8) | ||
| 2516 | (setq args | ||
| 2517 | (append args | ||
| 2518 | (list | ||
| 2519 | (concat "--encoding=" | ||
| 2520 | (symbol-name (ispell-get-coding-system))))))) | ||
| 2514 | (setq args (append args ispell-extra-args)) | 2521 | (setq args (append args ispell-extra-args)) |
| 2515 | 2522 | ||
| 2516 | ;; Initially we don't know any buffer's local words. | 2523 | ;; Initially we don't know any buffer's local words. |