Subject: Re: bug#13109: 24.1; flyspell highlights words containing curly quotes which ispell-buffer accepts

From: Juri Linkov <[email-masked]>
Date: Tue, 11 Dec 2012 01:34:11 +0200

> I just repeated the experiment with a built of the default branch of emacs,
> and obtained the same results.

It seems we can do nothing to fix this.  `ispell-aspell-find-dictionary'
reads the ispell data from /usr/lib/aspell/en.dat that contains

  name en
  charset iso8859-1
  special ' -*-
  soundslike en
  affix en
  #repl-table en_affix.dat

where `special' defines just a straight quote.

The meaning of -*- is described in `ispell-aspell-find-dictionary' as

	      ;; The line looks like: special ' -** - -** . -** : -*-
	      ;; -** means that this character
	      ;;    - doesn't appear at word start
	      ;;    * may appear in the middle of a word
	      ;;    * may appear at word end

And we can't add the curly quote in `ispell-aspell-find-dictionary' explicitly
because /usr/lib/aspell/en.dat defines the charset iso8859-1, but the curly quote
is from the charset utf-8.