Red Hat Bugzilla – Bug 443297
hunspell-bg doesn't work when called from CLI
Last modified: 2008-09-08 12:28:48 EDT
Description of problem:
hunspell doesn't check for misspelled words in Bulgarian when used from the
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Create a test file - "test" for example with the following content:
Note: проба means test in Bulgarian
$ hunspell -d bg_BG -L test
#Works fine with English
$hunspell -d en_US -L test
# hunspell finds the dictionary files
$hunspell -d bg_BG -D -L test
$rpm -ql hunspell-bg |grep bg_BG
As I understand firefox also uses hunspell and spell checking in firefox works
just fine for Bulgarian. I'm writing this bug report from firefox and "проба"
isn't underlined as misspelled.
I think what we have here is that the encoding of the .dic as mentioned in the
.aff is "microsoft-cp1251" which is an encoding that firefox and OpenOffice.org
know and convert internally to/from unicode ok, but it isn't an encoding that
iconv as used by the command line tool knows.
So if we in hunspell-bg convert the .aff and .doc to UTF-8 and change the
encoding identifier the .aff to UTF-8 (with iconv -f WINDOWS-CP1251) the it
should work in all modes.
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
*** Bug 449072 has been marked as a duplicate of this bug. ***