>Actually, this patch will not really fix anything, because the >ru_RU.KOI8-R locale needs to have been previously generated and >installed on the system, for this to work. Otherwise, declaring LANG >and LC_ALL (with or without the export statement) will always fall >back to the C locale that is the default on Debian's archive buildd >network. Seems Alexander was right, C locale will be work too.
diff -Naur rus-ispell-0.99g5/debian/rules rus-ispell-0.99g5-fix/debian/rules --- rus-ispell-0.99g5/debian/rules 2009-02-02 05:13:55.000000000 +0600 +++ rus-ispell-0.99g5-fix/debian/rules 2009-02-02 05:16:20.000000000 +0600 @@ -13,10 +13,15 @@ LANG_COUNTRY=ru_RU DICT_LANG=ru +#need for grep, sortkoi8 and tr to work with dictionary encoding in koi8-r!!! +LANG=C +LC_ALL=C + build-arch: + # Generate additional dictionary with IO letters replaced by IE + grep -h '[£³]' $(DICTIONARIES) | tr '£³' 'Åå' > io2ie_dictionary.koi # Generate ispell dictionary - grep -h '[£³]' $(DICTIONARIES) | tr '\243\263' '\305\345' > yo_subst.koi - cat $(DICTIONARIES) yo_subst.koi |./sortkoi8 | uniq > $(ILANGUAGE).dict + cat $(DICTIONARIES) io2ie_dictionary.koi | ./sortkoi8 | uniq > $(ILANGUAGE).dict sed -e "s/^\#[ye]//;s/^\#koi/wordchars/" $(ILANGUAGE).aff.koi > $(ILANGUAGE).aff buildhash $(ILANGUAGE).dict $(ILANGUAGE).aff $(ILANGUAGE).hash # Generate myspell dictionary @@ -36,7 +41,7 @@ clean:: # Clean ispell files. - rm -f *.cnt *.hash *.stat yo_subst.koi + rm -f *.cnt *.hash *.stat io2ie_dictionary.koi # Also delete aff and dict, since we build them here. rm -f $(ILANGUAGE).aff $(ILANGUAGE).dict # Clean myspell files.