From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12611: Bugfix for broken hunspell choices Date: Wed, 10 Oct 2012 17:57:44 +0200 Message-ID: <83d30qz5dz.fsf@gnu.org> References: <5074194B.6040305@inf.ethz.ch> <20121010104826.GA16468@agmartin.aq.upm.es> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1349884725 31129 80.91.229.3 (10 Oct 2012 15:58:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Oct 2012 15:58:45 +0000 (UTC) Cc: 12611@debbugs.gnu.org To: Agustin Martin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 10 17:58:52 2012 Return-path: Envelope-to: geb-bug-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 1TLygL-0007kh-7P for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Oct 2012 17:58:49 +0200 Original-Received: from localhost ([::1]:54481 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLygF-0001eR-2j for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Oct 2012 11:58:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLyg4-0001Eg-87 for bug-gnu-emacs@gnu.org; Wed, 10 Oct 2012 11:58:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLyfu-0005s6-MS for bug-gnu-emacs@gnu.org; Wed, 10 Oct 2012 11:58:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55739) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLyfu-0005s1-Ix for bug-gnu-emacs@gnu.org; Wed, 10 Oct 2012 11:58:22 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TLygX-0006Eh-KO for bug-gnu-emacs@gnu.org; Wed, 10 Oct 2012 11:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Oct 2012 15:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12611 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12611-submit@debbugs.gnu.org id=B12611.134988471023916 (code B ref 12611); Wed, 10 Oct 2012 15:59:01 +0000 Original-Received: (at 12611) by debbugs.gnu.org; 10 Oct 2012 15:58:30 +0000 Original-Received: from localhost ([127.0.0.1]:37746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TLyg1-0006Dg-Pp for submit@debbugs.gnu.org; Wed, 10 Oct 2012 11:58:30 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:63287) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TLyfy-0006DQ-R8 for 12611@debbugs.gnu.org; Wed, 10 Oct 2012 11:58:28 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MBO00I00PLQAL00@a-mtaout20.012.net.il> for 12611@debbugs.gnu.org; Wed, 10 Oct 2012 17:57:41 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MBO00I3KPO45Y30@a-mtaout20.012.net.il>; Wed, 10 Oct 2012 17:57:40 +0200 (IST) In-reply-to: <20121010104826.GA16468@agmartin.aq.upm.es> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:65462 Archived-At: > Date: Wed, 10 Oct 2012 12:48:26 +0200 > From: Agustin Martin > > > The only way I was able to generate choices for all wrong written > > word is by skiping the -a parameter. > > All the ispell.el communication with the spellchecker is done in pipe mode > (-a mode). If you disable it you will completely disable normal > communication. Indeed. > You are probably hit by some of the oddities in hunspell pipe mode > regarding UTF-8 characters. You mean "bugs". Yes, quite probably. The solution is to fix Hunspell (I think I can give the OP patches, if he can build his own Hunspell). Failing that, the work-around would be not to use UTF-8 for communicating with Hunspell. This should be possible for the de_CH locale. I suggest to customize ispell-local-dictionary-alist, and add to it an entry for de_CH (and any other languages you care about) that uses a unibyte encoding, such as Latin-1 or Latin-9. You will also have to change the CASECHARS and NOT-CASECHARS to use the corresponding Latin code points, see the value of ispell-dictionary-base-alist for an example. This should cause Hunspell to use the unibyte encoding, which should work around the problems with UTF-8.