From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Didier 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: Wed, 22 Aug 2018 20:31:13 -0700 Message-ID: References: <83efevfrq8.fsf@gnu.org> <838t53fq5h.fsf@gnu.org> <83r2itdrjh.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000bbde51057411e465" X-Trace: blaine.gmane.org 1534995045 726 195.159.176.226 (23 Aug 2018 03:30:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Aug 2018 03:30:45 +0000 (UTC) Cc: 32471@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 23 05:30:41 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 1fsgKV-0008Ua-IE for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Aug 2018 05:30:39 +0200 Original-Received: from localhost ([::1]:34218 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fsgMc-0005bI-1I for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Aug 2018 23:32:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fsgLu-0005KV-26 for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2018 23:32:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fsgLq-00034A-Py for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2018 23:32:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53222) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fsgLq-00033o-LZ for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2018 23:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fsgLq-0004Zm-FC for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2018 23:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Didier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Aug 2018 03:32: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.153499509217550 (code B ref 32471); Thu, 23 Aug 2018 03:32:02 +0000 Original-Received: (at 32471) by debbugs.gnu.org; 23 Aug 2018 03:31:32 +0000 Original-Received: from localhost ([127.0.0.1]:58240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fsgLM-0004Z0-3T for submit@debbugs.gnu.org; Wed, 22 Aug 2018 23:31:32 -0400 Original-Received: from mail-ua1-f53.google.com ([209.85.222.53]:41964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fsgLK-0004Yn-2A for 32471@debbugs.gnu.org; Wed, 22 Aug 2018 23:31:30 -0400 Original-Received: by mail-ua1-f53.google.com with SMTP id h1-v6so2374958uao.8 for <32471@debbugs.gnu.org>; Wed, 22 Aug 2018 20:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fhUeSaNhQGl/2tLBmO19MZqZY57XsskznM6EDfuXaZg=; b=JT4Hr0M5QjL4ROwkAYc4au8yYk9BqAU/T98ifn4fvK3M/SkUIz0AbS8QUVohdZiViM AtXzMn9So9Zj6N1XWb63EjvGUlDvRnFgET6DX5djTQKGSCOxq+XV0vDLdnv+Fj6Z0Kca KhsD6j7XLoTGTRbUNW6upLa50nZ0MP6w2JAzvPg7ndn5mWPLzgZ9KRiYfjZr1PGRJlUA uzqS11/tVPykldoBJrzQVAj/2yNpH4iHO9Kea6T7jw5tQpOfwE9EBVILDVry1eehQEnn hP0bF5FcdJzsScIgV0VCs1G8QjdzF7OHMcPskmFdHW3NgbNn/5ajtZtkBJMLQcZ8+i73 8gPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fhUeSaNhQGl/2tLBmO19MZqZY57XsskznM6EDfuXaZg=; b=DltjIkCZFF/GFWYtvyge4geSHJL/uHnNJEg6DMWLi6HABx3vySH76M0cQgzq/Jcqsj 3qsLZcLmWGpx9bxlMIk/b4NOWkdBlpDNJcHwzLWECycq5bOMkhwmNCrfJZy5kFO71vkv knYe+PCG8DHCwewCVSHt+DknwfOQ9IbHdqkx4rP4nx5umY+xvudWtsSZcbmZTKtCiV3i pfpTpUL5rL7new7LZqFXioLUan1JbsREpCReStdQOysrumcnctcMel9onR6LnWMzrdE3 asc4Lt0yf2ltJR6sQBW+mdcRY+HwGzMf86cVJvHJ/wW4B86fDveJvocxli5S6Hbh8bTW WM+Q== X-Gm-Message-State: APzg51D/5gwRGJvpEk9RFOclRkOZDKsgSiJFFH2YSRZTZ0/t4vZV0uP4 XdcSsudhNiGVBSUe1p4YSo0gC6Ag3QgKEWzSouc= X-Google-Smtp-Source: ANB0VdY/D/9VEt1UFEAmSJbEcYpUmmVrXy5/MWmz5gu1lRf8LDyK2pJV8ievXbYzJZFwXIUP4bhA3Kh9D4OhmnJmUJA= X-Received: by 2002:ab0:4946:: with SMTP id a6-v6mr5530213uad.82.1534995084335; Wed, 22 Aug 2018 20:31:24 -0700 (PDT) In-Reply-To: <83r2itdrjh.fsf@gnu.org> 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:149681 Archived-At: --000000000000bbde51057411e465 Content-Type: text/plain; charset="UTF-8" Wow, that worked. So, is there no way I can change my Locale within Emacs prior to loading ispell? On Mon, 20 Aug 2018 at 07:47 Eli Zaretskii wrote: > > 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"). > --000000000000bbde51057411e465 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Wow, that worked.

So, is the= re no way I can change my Locale within Emacs prior to loading ispell?
<= /div>

On Mon, 20 Aug 2= 018 at 07:47 Eli Zaretskii <eliz@gnu.org= > wrote:
> From: Didier &= lt;didibus@gmail.com= >
> Date: Mon, 20 Aug 2018 01:12:02 -0700
> Cc: 32471@d= ebbugs.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:\Us= ers\didibus\hunspell\bin\..\share\hunspell;C:\Program
> files\OpenOffice.org 2.4\share\dict\ooo\;C:\Program files\OpenOffice.o= rg 2.3\share\dict\ooo\;C:\Program
> files\OpenOffice.org 2.2\share\dict\ooo\;C:\Program files\OpenOffice.o= rg 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 "EN= U".
>
> 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 fol= der:
>
> 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:
>
>=C2=A0 =C2=A0 =C2=A0(setq ispell-dictionary "en_US")
>=C2=A0 =C2=A0 =C2=A0(setq ispell-dictionary-alist
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'(("en_US" "= ;[[:alpha:]]" "[^[:alpha:]]" "[']"
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 t ("-d" &quo= t;en_US" "-p" "C:\\Users\\didibus\\hunspell\\share\\hun= spell\\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").
--000000000000bbde51057411e465--