[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ispell.el and multilanguage lines.
From: |
Eli Zaretskii |
Subject: |
Re: ispell.el and multilanguage lines. |
Date: |
Mon, 07 Mar 2016 18:38:46 +0200 |
> From: Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
> Date: Mon, 7 Mar 2016 04:18:20 +0300
>
> There's a really confusing bug with the way hunspell behaves with
> Russian codepages on windows, that is not really emacs related. FYI:
> I'm using current hunspell from ezwinports. Let's start hunspell in
> windows cmd:
> chcp 1251
> hunspell -a "" -d ru_RU -i cp1251
> тестовоеслово
> testword
> Both of the above would result in spellchecking failures. Let's add them
> to the personal dictionary:
> *тестовоеслово
> *testword
> #
> Now, if you try exiting and starting hunspell again, both words would be
> considered correct, since they are in your personal dictionary.
>
> Here's where the bug comes into play. If you start some kind of bash, be
> it cygwin bash, or msys and try using hunspell there:
> hunspell -a "" -d ru_RU -i utf-8
> testword would check ok, but тестовоеслово would fail. The same would
> happen within emacs. My best guess is that this happens because of some
> locale-connected environmental variable, that bash(and emacs) sets.
Why don't you use utf-8 instead of cp1251?