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#7781: [PATCH] Fix ispell problem with hunspell and UTF-8 file Date: Sun, 14 Apr 2013 08:42:11 +0300 Message-ID: <83wqs57jnw.fsf@gnu.org> References: <87sjx9fula.fsf@sc3d.org> <5169AE26.1000403@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1365918184 18048 80.91.229.3 (14 Apr 2013 05:43:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Apr 2013 05:43:04 +0000 (UTC) Cc: 7781@debbugs.gnu.org To: =?UTF-8?Q?=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B9_?= =?UTF-8?Q?=D0=A1=D1=83=D1=89=D0=B5=D0=BD=D0=BA=D0=BE?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 14 07:43:05 2013 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 1URFiR-0004fC-0K for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Apr 2013 07:43:03 +0200 Original-Received: from localhost ([::1]:55775 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URFiQ-0000Fh-Jo for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Apr 2013 01:43:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URFiN-0000Fc-Km for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2013 01:43:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URFiM-0003c6-KU for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2013 01:42:59 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URFiM-0003c2-Gk for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2013 01:42:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1URFmI-0007so-AK for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2013 01:47:02 -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: Sun, 14 Apr 2013 05:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7781 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7781-submit@debbugs.gnu.org id=B7781.136591837330169 (code B ref 7781); Sun, 14 Apr 2013 05:47:02 +0000 Original-Received: (at 7781) by debbugs.gnu.org; 14 Apr 2013 05:46:13 +0000 Original-Received: from localhost ([127.0.0.1]:49592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1URFlV-0007qY-Kq for submit@debbugs.gnu.org; Sun, 14 Apr 2013 01:46:13 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:61072) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1URFlS-0007qP-LF for 7781@debbugs.gnu.org; Sun, 14 Apr 2013 01:46:12 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0ML800400D2W0X00@a-mtaout23.012.net.il> for 7781@debbugs.gnu.org; Sun, 14 Apr 2013 08:42:05 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0ML8003L0D64TUB0@a-mtaout23.012.net.il>; Sun, 14 Apr 2013 08:42:05 +0300 (IDT) In-reply-to: <5169AE26.1000403@yandex.ru> 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.x 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:73393 Archived-At: > Date: Sat, 13 Apr 2013 23:12:38 +0400 > From: =D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B9 =D0=A1=D1=83=D1= =89=D0=B5=D0=BD=D0=BA=D0=BE >=20 > As soon as I can see, the hunspell team haven't fixed the bug in mo= re=20 > then 2 years. Maybe for them it is not a bug but a feature. Hunspell bug resolution process could use some speedup. > The problem is that hunspell reports byte-position instead of=20 > char-position with multi-byte character input, while Emacs waits fo= r=20 > char-position. With the patch attached I propose to make conversati= on in=20 > the ispell-parse-output function. Sorry, no. I tried that initially, but this work-around has problems (don't remember the details, though). It is much better to rebuild Hunspell with this bug fixed. I can giv= e you a patch for that if you need it (I think there's a patch in the bug database as well). I fixed my hunspell long ago, and never looke= d back. Or ask your distribution's maintainers to release a fixed hunspell distro. Thanks.