Bug 509882

Summary: hunspell <file> ERROR: Can't open affix or dictionary files for dictionary named "" with $LANGUAGE=""
Product: [Fedora] Fedora Reporter: Rex Dieter <rdieter>
Component: hunspellAssignee: Caolan McNamara <caolanm>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: caolanm
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.2.8-7.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-16 07:25:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
requested strace/export output none

Description Rex Dieter 2009-07-06 16:58:38 UTC
Per
https://bugzilla.redhat.com/show_bug.cgi?id=509387#c10

rpm -q hunspell
hunspell-1.2.8-5.fc11.x86_64

echo $LANG
en_US.UTF-8

hunspell <file>
=> ERROR:  Can't open affix or dictionary files for dictionary named "".

Comment 1 Caolan McNamara 2009-07-07 08:28:31 UTC
I *imagine* there isn't any dictionaries installed right ?, i.e.
what's the output of 
rpm -q hunspell-en 
and the output of
locale

Comment 2 Rex Dieter 2009-07-07 11:40:27 UTC
$ rpm -q hunspell-en
hunspell-en-0.20090216-2.fc11.noarch

$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Comment 3 Caolan McNamara 2009-07-07 13:22:31 UTC
that's unusual, hmm. can I get...

$ strace -f hunspell -l /dev/null > /tmp/log 2>&1
$ export >> /tmp/log

Comment 4 Rex Dieter 2009-07-07 13:27:13 UTC
Created attachment 350795 [details]
requested strace/export output

Comment 5 Caolan McNamara 2009-07-07 13:56:08 UTC
how come you have...

declare -x LANGUAGE=""

?

A number of things might be broken due to the presence of a $LANGUAGE which is empty, rather than not having a $LANGUAGE at all. (a quick look at OOo shows that its likely to get confused by that as well for example). Though I can clearly improve hunspell to dismiss an empty $LANGUAGE

http://www.gnu.org/s/libc/manual/html_node/Using-gettextized-software.html#Using-gettextized-software

Comment 6 Fedora Update System 2009-07-07 14:13:48 UTC
hunspell-1.2.8-6.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/hunspell-1.2.8-6.fc11

Comment 7 Rex Dieter 2009-07-07 19:05:19 UTC
Re: comment #5

> how come you have...  declare -x LANGUAGE=""

Good question, no idea really, how/where is that supposed to get set?

(I'll dig around in the meantime)

Comment 8 Fedora Update System 2009-07-11 10:18:45 UTC
hunspell-1.2.8-7.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/hunspell-1.2.8-7.fc11

Comment 9 Fedora Update System 2009-07-16 07:19:40 UTC
hunspell-1.2.8-6.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update hunspell'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-7644

Comment 10 Fedora Update System 2009-07-16 07:25:31 UTC
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.