Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 568488

Summary: =app-dicts/myspell-en-20151201: Invalid encoding name in in en_US and en_CA dictionaries
Product: Gentoo Linux Reporter: Daniel Scharrer <daniel>
Component: Current packagesAssignee: Elizabeth Myers <elizabeth>
Status: RESOLVED FIXED    
Severity: normal CC: kensington, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Daniel Scharrer 2015-12-16 22:58:14 UTC
The en_US.aff and en_CA.aff dictionaries define their encoding as "SET UTF8" while hunspell expects "SET UTF-8". The other dictionaries in the package (en_AU, en_GB, en_ZA) use the correct syntax.

Reproducible: Always

Steps to Reproduce:
echo "Hello world!" | LANG="en_US.utf-8" hunspell
Actual Results:  
error: unknown encoding UTF8: using iso88591 as fallback
error: unknown encoding UTF8: using iso88591 as fallback
error: unknown encoding UTF8: using iso88591 as fallback
error: unknown encoding UTF8: using iso88591 as fallback
Hunspell 1.3.3
*
*

Expected Results:  
No errors.

$ locale -a
C
de_DE
de_DE@euro
de_DE.iso88591
de_DE.iso885915@euro
deutsch
en_DK.utf8
en_US
en_US.iso88591
en_US.utf8
german
POSIX

Changing the two affected .aff files to use "SET UTF-8" fixes the issue.
Comment 1 Michael Palimaka (kensington) gentoo-dev 2015-12-17 16:21:25 UTC
This should probably go upstream.
Comment 2 Elizabeth Myers 2016-03-05 01:44:01 UTC
This should be an upstream bug. I will consider a patch to the dictionary files, if possible.
Comment 3 Michael Palimaka (kensington) gentoo-dev 2016-06-24 16:02:16 UTC
This is fixed in 20160201.