From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#42248: 27.0.91; With enchant-2.2.8 from Guix, Flyspell errors out or gives lots of false positives Date: Thu, 20 Aug 2020 19:02:31 +0300 Message-ID: <83a6ypcnl4.fsf@gnu.org> References: <878sfvwbr0.fsf@disroot.org> <87mu2qyu94.fsf@disroot.org> <83k0xtcv7a.fsf@gnu.org> <87eeo1z5we.fsf@disroot.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12649"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 42248@debbugs.gnu.org, stefan@marxist.se To: Jorge P. de Morais Neto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 20 18:05:27 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k8n4B-00036J-CY for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Aug 2020 18:05:27 +0200 Original-Received: from localhost ([::1]:41004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k8n4A-0007CJ-Du for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Aug 2020 12:05:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k8n1q-0002x5-QN for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2020 12:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60327) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k8n1q-0005P1-Dz for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2020 12:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k8n1q-0003VX-AO for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2020 12:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Aug 2020 16:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42248 X-GNU-PR-Package: emacs Original-Received: via spool by 42248-submit@debbugs.gnu.org id=B42248.159793936913455 (code B ref 42248); Thu, 20 Aug 2020 16:03:02 +0000 Original-Received: (at 42248) by debbugs.gnu.org; 20 Aug 2020 16:02:49 +0000 Original-Received: from localhost ([127.0.0.1]:43639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8n1d-0003Ux-Iu for submit@debbugs.gnu.org; Thu, 20 Aug 2020 12:02:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8n1b-0003Pl-7S for 42248@debbugs.gnu.org; Thu, 20 Aug 2020 12:02:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43138) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k8n1V-0005Lq-CC; Thu, 20 Aug 2020 12:02:41 -0400 Original-Received: from [176.228.60.248] (port=3142 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k8n1U-0003Xo-NX; Thu, 20 Aug 2020 12:02:41 -0400 In-Reply-To: <87eeo1z5we.fsf@disroot.org> (message from Jorge P. de Morais Neto on Thu, 20 Aug 2020 12:36:01 -0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:185714 Archived-At: > From: Jorge P. de Morais Neto > Cc: stefan@marxist.se, 42248@debbugs.gnu.org > Date: Thu, 20 Aug 2020 12:36:01 -0300 > > > Do you see the same problem when you invoke Enchant from the shell > > prompt? > > Yes, enchant-2 on the command line misreports numbers: > $ enchant-2 -d en_US -l /tmp/enchant-test.txt > 2015 > Casa > 42 > > $ enchant-2 -d pt_BR -l /tmp/enchant-test.txt > doesn't > 2015 > 42 Then I guess at least part of the problem is with Enchant (or the Aspell back-end it uses), and not with Emacs. > Therefore, the list for "american" specifies `("-B" #4="-d" "en_US")' as > ISPELL-ARGS. However, enchant-2 does not take a "-B" flag: > > $ enchant-2 -B -d en_US /tmp/enchant-test.txt > Usage: enchant-2 -a|-l|-h|-v [-L] [-d DICTIONARY] [FILE] > -d DICTIONARY use the given dictionary > -a list suggestions in ispell pipe mode format > -l list only the misspellings > -L display line numbers > -h display help and exit > -v display version information and exit So instead of ignoring -B, Enchant reports an error -- another incompatibility with Ispell, Aspell, and Hunspell. > > $ enchant-2 -B -d en_US -l /tmp/enchant-test.txt > Usage: enchant-2 -a|-l|-h|-v [-L] [-d DICTIONARY] [FILE] > -d DICTIONARY use the given dictionary > -a list suggestions in ispell pipe mode format > -l list only the misspellings > -L display line numbers > -h display help and exit > -v display version information and exit > > > Also, the list for "en_US" specifies "" for OTHERCHARS, but, IIUC, it > ought to be "[']" instead. This means something is wrong with the initialization, as the data is set up correctly in ispell.el. Does the above happen in "emacs -Q"?