Web lists-archives.com

flyspell with hunspell error complaining about utf8


Does anyone have also an error when using flyspell with hunspell (inside
emacs of course)?

I have the following error when activate flyspell-mode (with hunspell
set as the default dictionnary):

"Error enabling Flyspell mode:

My flyspell configuration (below) worked flawless for years.

(if (file-exists-p "/usr/bin/hunspell")
      (setq ispell-program-name "hunspell")
      (eval-after-load "ispell"
        '(progn (defun ispell-get-coding-system () 'utf-8)))))

;(setq ispell-dictionary "francais")
(setq flyspell-sort-corrections nil)

(global-set-key [f2] 'flyspell-mode)
(add-hook 'LaTeX-mode-hook 'flyspell-mode)
(add-hook 'mail-mode-hook 'flyspell-mode)
;(add-hook 'org-mode-hook 'flyspell-mode)

 (lambda ()
   (ispell-change-dictionary "francais")))
 (lambda ()
   (ispell-change-dictionary "english")))