From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32471: 26.1; ispell throwing wrong-type-argument stringp nil on Windows 10, with emacs 26.1 and hunspell Date: Mon, 20 Aug 2018 17:46:42 +0300 Message-ID: <83r2itdrjh.fsf@gnu.org> References: <83efevfrq8.fsf@gnu.org> <838t53fq5h.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1534776309 7429 195.159.176.226 (20 Aug 2018 14:45:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Aug 2018 14:45:09 +0000 (UTC) Cc: 32471@debbugs.gnu.org To: Didier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 20 16:45:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1frlQW-0001oV-6B for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Aug 2018 16:45:04 +0200 Original-Received: from localhost ([::1]:47527 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frlSc-0005ly-PA for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Aug 2018 10:47:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frlSR-0005jj-JR for bug-gnu-emacs@gnu.org; Mon, 20 Aug 2018 10:47:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frlSQ-0000rM-E2 for bug-gnu-emacs@gnu.org; Mon, 20 Aug 2018 10:47:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50712) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1frlSQ-0000rH-9Q for bug-gnu-emacs@gnu.org; Mon, 20 Aug 2018 10:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1frlSQ-0002ZP-3b for bug-gnu-emacs@gnu.org; Mon, 20 Aug 2018 10:47: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: Mon, 20 Aug 2018 14:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32471 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32471-submit@debbugs.gnu.org id=B32471.15347764199867 (code B ref 32471); Mon, 20 Aug 2018 14:47:02 +0000 Original-Received: (at 32471) by debbugs.gnu.org; 20 Aug 2018 14:46:59 +0000 Original-Received: from localhost ([127.0.0.1]:55730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1frlSM-0002Z4-F2 for submit@debbugs.gnu.org; Mon, 20 Aug 2018 10:46:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1frlSL-0002Ys-Em for 32471@debbugs.gnu.org; Mon, 20 Aug 2018 10:46:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frlSB-0000hE-RE for 32471@debbugs.gnu.org; Mon, 20 Aug 2018 10:46:51 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frlSB-0000gY-Ck; Mon, 20 Aug 2018 10:46:47 -0400 Original-Received: from [176.228.60.248] (port=2108 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1frlS9-0005ly-Hd; Mon, 20 Aug 2018 10:46:47 -0400 In-reply-to: (message from Didier on Mon, 20 Aug 2018 01:12:02 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:149617 Archived-At: > From: Didier > Date: Mon, 20 Aug 2018 01:12:02 -0700 > Cc: 32471@debbugs.gnu.org > > If I run hunspell -D from the command line, I get: > > SEARCH PATH: > .;;C:\Hunspell\;C:\Users\didibus\.openoffice.org\3\user\wordbook;C:\Users\didibus\hunspell\bin\..\share\hunspell;C:\Program > files\OpenOffice.org 2.4\share\dict\ooo\;C:\Program files\OpenOffice.org 2.3\share\dict\ooo\;C:\Program > files\OpenOffice.org 2.2\share\dict\ooo\;C:\Program files\OpenOffice.org 2.1\share\dict\ooo\;C:\Program > files\OpenOffice.org 2.0\share\dict\ooo\ > AVAILABLE DICTIONARIES (path is not mandatory for -d option): > C:\Users\didibus\hunspell\bin\..\share\hunspell\default > C:\Users\didibus\hunspell\bin\..\share\hunspell\en_GB > C:\Users\didibus\hunspell\bin\..\share\hunspell\en_US > Can't open affix or dictionary files for dictionary named "ENU". > > I got the windows port of hunspell from here: https://sourceforge.net/projects/ezwinports/files/ > > When I do ispell-change-dictionary to en_US it says: (match required), and nothing happens. > > This is the content of my c:\Users\didibus\hunspell\share\hunspell folder: > > README_en_GB.txt > README_en_US.txt > default.aff > default.dic > dictionary.lst > en_GB.aff > en_GB.dic > en_US.aff > en_US.dic Copy en_US.* files into corresponding ENU.* files, and your problem is likely to go away. > By the way, it seems I can get it to work if I add the following to my init file: > > (setq ispell-dictionary "en_US") > (setq ispell-dictionary-alist > '(("en_US" "[[:alpha:]]" "[^[:alpha:]]" "[']" > t ("-d" "en_US" "-p" "C:\\Users\\didibus\\hunspell\\share\\hunspell\\en_US.aff") nil utf-8))) Yes, but that shouldn't be necessary if you configure Hunspell for your locale (which is ENU, a.k.a. "en_US").