GNU bug report logs - #19073
Ispell fails to initialise when hunspell does not report any loaded dictionaries

Previous Next

Package: emacs;

Reported by: Peter Oliver <lists.gnu.org <at> mavit.org.uk>

Date: Sun, 16 Nov 2014 17:51:03 UTC

Severity: normal

Tags: moreinfo

Done: Peter Oliver <lists.gnu.org <at> mavit.org.uk>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Peter Oliver <lists.gnu.org <at> mavit.org.uk>
Subject: bug#19073: closed (Re: bug#19073: Ispell fails to initialise when
 hunspell does not report any loaded dictionaries)
Date: Sat, 22 Nov 2014 20:21:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#19073: Ispell fails to initialise when hunspell does not report any loaded dictionaries

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 19073 <at> debbugs.gnu.org.

-- 
19073: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19073
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Peter Oliver <lists.gnu.org <at> mavit.org.uk>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 19073-done <at> debbugs.gnu.org
Subject: Re: bug#19073: Ispell fails to initialise when hunspell does not
 report any loaded dictionaries
Date: Sat, 22 Nov 2014 20:20:10 +0000 (GMT)
On Mon, 17 Nov 2014, Eli Zaretskii wrote:

> I'm guessing that you have an old binary of the ported Hunspell.
> Please install the latest one from ezwinports and try again.

You're quite right.  I mistakenly believed that because I had version 1.3.2, and the latest ezwinports version was 1.3.2, that I had the latest release.

Thanks.

-- 
Peter Oliver

[Message part 3 (message/rfc822, inline)]
From: Peter Oliver <lists.gnu.org <at> mavit.org.uk>
To: bug-gnu-emacs <at> gnu.org
Subject: Ispell fails to initialise when hunspell does not report any loaded
 dictionaries
Date: Sun, 16 Nov 2014 13:34:57 +0000 (GMT)
[Message part 4 (text/plain, inline)]
The build of Hunspell 1.3.2 at http://sourceforge.net/projects/ezwinports/files/ from doesn't output the "LOADED DICTIONARY:" section when "hunspell -D" is run.  I don't know if this is a bug in hunspell, or in the build, or if this feature is missing on Windows, or if there is some other reason.

In any case, this missing section confuses function ispell-find-hunspell-dictionaries in Emacs 24.4 (I'm using the build at http://sourceforge.net/projects/emacs-bin/files/releases/emacs-24.4-bin-i686-pc-mingw32.7z/download).  Variable hunspell-default-dict never gets set, meaning function ispell-parse-hunspell-affix-file ends up being called with a nil argument and erroring.

The attached patch gets things working again for me, although I must admit I don't understand the implications of not detecting a default dictionary.

If this patch is used, I believe that I will need to sign legal papers before patches from me can be accepted.  I am happy to do so.

-- 
Peter Oliver
[0001-Don-t-error-when-no-default-Hunspell-dictionary-is-d.patch (text/plain, attachment)]

This bug report was last modified 10 years and 177 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.