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#52179: Highlighting a word in `ispell' using `enchant' Date: Tue, 30 Nov 2021 05:22:10 +0200 Message-ID: <835ysauy3h.fsf@gnu.org> References: <83k0grui9h.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2768"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52179@debbugs.gnu.org To: Tor Kringeland Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 30 04:23:13 2021 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 1mrtjd-0000Xk-3J for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Nov 2021 04:23:13 +0100 Original-Received: from localhost ([::1]:39514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrtjb-0004dj-K5 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Nov 2021 22:23:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrtjS-0004dU-LI for bug-gnu-emacs@gnu.org; Mon, 29 Nov 2021 22:23:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56623) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrtjS-0007z2-Cq for bug-gnu-emacs@gnu.org; Mon, 29 Nov 2021 22:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mrtjS-0002aB-9e for bug-gnu-emacs@gnu.org; Mon, 29 Nov 2021 22:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Nov 2021 03:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52179 X-GNU-PR-Package: emacs Original-Received: via spool by 52179-submit@debbugs.gnu.org id=B52179.16382425329857 (code B ref 52179); Tue, 30 Nov 2021 03:23:02 +0000 Original-Received: (at 52179) by debbugs.gnu.org; 30 Nov 2021 03:22:12 +0000 Original-Received: from localhost ([127.0.0.1]:39936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrtid-0002Yv-Ld for submit@debbugs.gnu.org; Mon, 29 Nov 2021 22:22:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrtiV-0002YL-K3 for 52179@debbugs.gnu.org; Mon, 29 Nov 2021 22:22:11 -0500 Original-Received: from [2001:470:142:3::e] (port=46510 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrtiQ-0007ui-0D; Mon, 29 Nov 2021 22:21:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=lBivYekusyej/apwxLrTkTwu3tlNXKMZJSQPZdgj00U=; b=os/vmdZJMA5o 5t7Bp5zv3r68dqZK/qJXIFMx2hUPphtHmzIXYGQ1bS4ifJrVaOXo4O0WdyxWYLKkhM8rD+vUtwW8t XDt4qG3ddmciGWLdiWjtEIv1GYxaqjrzh9J2MtKTXQh7Ia6SUEQeuKaMVOd40PJq+E3qpsXP4wL0T XxIV1eIdyeKaNh926ytTTCF+lBk88qrr4K8IV2WE5xDUza/tgTT/+CxaSsm9jQ2OsqINuMbd9uxo3 KDxlkkkxIiogdUNG7FxM8A5nr3ziHjQs/zyLEU9l0MohxSxt2rHqKXSSxA56Oyp+biJo019FDZc0H Aqs/8yBJTXx9IkLF2bHaDw==; Original-Received: from [87.69.77.57] (port=4178 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrtiP-0005Ns-Nn; Mon, 29 Nov 2021 22:21:58 -0500 In-Reply-To: (message from Tor Kringeland on Mon, 29 Nov 2021 21:46:05 +0100) 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:221095 Archived-At: > From: Tor Kringeland > Cc: 52179@debbugs.gnu.org > Date: Mon, 29 Nov 2021 21:46:05 +0100 > > >> I'm using Enchant version 2.3.1 and an Emacs 29 build from 24 November > >> on macOS Catalina. > > > > Which dictionary do you use, and what encoding does that dictionary > > require? > > In Emacs, the relevant entry in `ispell-dictionary-alist' is > > ("en" "[[:alpha:]]" "[^[:alpha:]]" "" t nil nil utf-8) > > I installed `aspell' and `enchant' from Homebrew. The installation of > `aspell' included a bunch of dictionaries downloaded from gnu.org. In > particular, the "en" dictionary is downloaded from [1]. It is in some > kind of binary format after installation (see [2] for details). > > The weird part is that it works fine in a command line, and switching > `ispell-program-name' to use `aspell' fixes the issue, so the problem > seems to be somehow in how Emacs interacts with the `enchant-2' binary. > It's doing the same for non-ASCII characters as one would expect from > numbers: the string "one0two" is valid, as "one" and "two" are treated > as separate words and "0" is ignored. I suspect that the problem is with the LC_* and LANG environment variables in the problematic case, which confuse the speller with regards to the language and encoding used.