From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: ispell.el and multilanguage lines. Date: Mon, 07 Mar 2016 18:38:46 +0200 Message-ID: <8337s2utt5.fsf@gnu.org> References: <56709EF2.2080302@gmail.com> <83y4cv12tr.fsf@gnu.org> <56DCD6DC.60503@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1457368743 28803 80.91.229.3 (7 Mar 2016 16:39:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2016 16:39:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 07 17:38:58 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1acyBN-0002oA-9S for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Mar 2016 17:38:57 +0100 Original-Received: from localhost ([::1]:56918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acyBM-0004VU-Lm for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Mar 2016 11:38:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acyBB-0004VP-3m for help-gnu-emacs@gnu.org; Mon, 07 Mar 2016 11:38:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acyB6-0004gw-4M for help-gnu-emacs@gnu.org; Mon, 07 Mar 2016 11:38:45 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acyB6-0004gq-0q for help-gnu-emacs@gnu.org; Mon, 07 Mar 2016 11:38:40 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1304 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1acyB5-0008TO-32 for help-gnu-emacs@gnu.org; Mon, 07 Mar 2016 11:38:39 -0500 In-reply-to: <56DCD6DC.60503@gmail.com> (message from Nikolay Kudryavtsev on Mon, 7 Mar 2016 04:18:20 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109504 Archived-At: > From: Nikolay Kudryavtsev > 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?