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#25825: 25.1; ispell-find-hunspell-dictionaries not working on Windows Date: Wed, 26 Aug 2020 22:39:57 +0300 Message-ID: <83eent2o36.fsf@gnu.org> References: <83o8mx2res.fsf@gnu.org> <83k0xl2r0u.fsf@gnu.org> <83h7sp2pyx.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6833"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sw9@outlook.com, 25825@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 26 21:41:09 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 1kB1ID-0001eh-Bu for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Aug 2020 21:41:09 +0200 Original-Received: from localhost ([::1]:41862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kB1IC-0003S6-AH for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Aug 2020 15:41:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kB1I6-0003Rk-78 for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2020 15:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57572) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kB1I5-0008WD-U0 for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2020 15:41:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kB1I5-0003lh-Qq for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2020 15:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Aug 2020 19:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25825 X-GNU-PR-Package: emacs Original-Received: via spool by 25825-submit@debbugs.gnu.org id=B25825.159847081914427 (code B ref 25825); Wed, 26 Aug 2020 19:41:01 +0000 Original-Received: (at 25825) by debbugs.gnu.org; 26 Aug 2020 19:40:19 +0000 Original-Received: from localhost ([127.0.0.1]:40885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kB1HP-0003kd-D8 for submit@debbugs.gnu.org; Wed, 26 Aug 2020 15:40:19 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kB1HN-0003kP-9N for 25825@debbugs.gnu.org; Wed, 26 Aug 2020 15:40:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38617) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kB1HH-0008CK-JA; Wed, 26 Aug 2020 15:40:11 -0400 Original-Received: from [176.228.60.248] (port=3068 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kB1HG-0007V9-V3; Wed, 26 Aug 2020 15:40:11 -0400 In-Reply-To: (message from Stefan Kangas on Wed, 26 Aug 2020 12:21:02 -0700) 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:186473 Archived-At: > From: Stefan Kangas > Date: Wed, 26 Aug 2020 12:21:02 -0700 > Cc: sw9@outlook.com, 25825@debbugs.gnu.org > > But for some reason, hunspell is very sensitive and will not give any > loaded dictionary if $LANG is unset. (IMO, very unhelpful behaviour.) Maybe this is worth a bug report against Hunspell. But is this really relevant to how Hunspell is invoked from Emacs? It certainly isn't on Windows, because we inject LANG into the environment there. But what about Posix hosts? > One idea to improve the situation on our end is to look for "Can't > open affix or dictionary files for dictionary named 'default'." and > raise a better error in these cases. Fine with me. > Or, if we want to really go out of our way, we could retry with > "LANG=en_US.UTF-8". That cannot fly: we cannot second-guess the user's locale, and we shouldn't force some arbitrary locale on them. It's basically a mis-configured system, so signaling an error is good enough, IMO.