Red Hat Bugzilla – Bug 498556
hunspell has no default dictionary, so hunspell -a doesn't work and neither does emacs spell-checking
Last modified: 2009-07-16 03:25:40 EDT
ispell-program-name is set to "hunspell" in emacs.
I have hunspell, hunspell-en, and hunspell-he installed.
"hunspell -a" prints:
@(#) International Ispell Version 3.2.06 (but really Hunspell 1.2.8)
Can't open affix or dictionary files.
"hunspell -d en_US -a" works, but shouldn't there be a default?
The man page claims that /usr/share/myspell/default.aff and /usr/share/myspell/default.pic are the defaults, but (a) they don't exist, and (b) strace on "hunspell -a" doesn't show it trying to read them.
That same strace shows hunspell behaving rather oddly, e.g.:
24781 open("/usr/share/myspell/LC_CTYPE=en_US;LC_NUMERIC=en_US;LC_TIME=en_US;LC_COLLATE=C;LC_MONETARY=en_US;LC_MESSAGES=en_US;LC_PAPER=en_US;LC_NAME=en_US;LC_ADDRESS=en_US;LC_TELEPHONE=en_US;LC_MEASUREMENT=en_US;LC_IDENTIFICATION=en_US.aff", O_RDONLY) = -1 ENOENT (No such file or directory)
give me the output of...
echo hello wrld | strace -f hunspell -a 2>&1 | grep myspell | sort | uniq
and the output of
the problem would probably go away with
Created attachment 342056 [details]
assuming that I'm right, this would fix the problem
If I'm right, this'll probably be the right sort of fix
Patched logged as https://sourceforge.net/tracker/?func=detail&aid=2784983&group_id=143754&atid=756397 and checked into rawhide.
hunspell-1.2.8-5.fc11 has been submitted as an update for Fedora 11.
hunspell-1.2.8-6.fc11 has been submitted as an update for Fedora 11.
hunspell-1.2.8-7.fc11 has been submitted as an update for Fedora 11.
hunspell-1.2.8-7.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.