You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using hunspell 1.7.0 on Debian GNU/Linux (bullseye/sid):
@(#) International Ispell Version 3.2.06 (but really Hunspell 1.7.0)
I think hunspell could handle unset or empty $LANG a bit better:
$ hunspell -D /dev/null
SEARCH PATH:
.::/usr/share/hunspell:/usr/share/myspell:/usr/share/myspell/dicts:/Library/Spelling:/home/skangas/.openoffice.org/3/user/wordbook:/home/skangas/.openoffice.org2/user/wordbook:/home/skangas/.openoffice.org2.0/user/wordbook:/home/skangas/Library/Spelling:/opt/openoffice.org/basis3.0/share/dict/ooo:/usr/lib/openoffice.org/basis3.0/share/dict/ooo:/opt/openoffice.org2.4/share/dict/ooo:/usr/lib/openoffice.org2.4/share/dict/ooo:/opt/openoffice.org2.3/share/dict/ooo:/usr/lib/openoffice.org2.3/share/dict/ooo:/opt/openoffice.org2.2/share/dict/ooo:/usr/lib/openoffice.org2.2/share/dict/ooo:/opt/openoffice.org2.1/share/dict/ooo:/usr/lib/openoffice.org2.1/share/dict/ooo:/opt/openoffice.org2.0/share/dict/ooo:/usr/lib/openoffice.org2.0/share/dict/ooo
AVAILABLE DICTIONARIES (path is not mandatory for -d option):
/usr/share/hunspell/en_US
/usr/share/hunspell/sv_FI
/usr/share/hunspell/sv_SE
/home/skangas/.openoffice.org/3/user/wordbook/standard
Can't open affix or dictionary files for dictionary named "default".
$ export LANG=en_US.UTF-8
$ hunspell -D /dev/null
SEARCH PATH:
.::/usr/share/hunspell:/usr/share/myspell:/usr/share/myspell/dicts:/Library/Spelling:/home/skangas/.openoffice.org/3/user/wordbook:/home/skangas/.openoffice.org2/user/wordbook:/home/skangas/.openoffice.org2.0/user/wordbook:/home/skangas/Library/Spelling:/opt/openoffice.org/basis3.0/share/dict/ooo:/usr/lib/openoffice.org/basis3.0/share/dict/ooo:/opt/openoffice.org2.4/share/dict/ooo:/usr/lib/openoffice.org2.4/share/dict/ooo:/opt/openoffice.org2.3/share/dict/ooo:/usr/lib/openoffice.org2.3/share/dict/ooo:/opt/openoffice.org2.2/share/dict/ooo:/usr/lib/openoffice.org2.2/share/dict/ooo:/opt/openoffice.org2.1/share/dict/ooo:/usr/lib/openoffice.org2.1/share/dict/ooo:/opt/openoffice.org2.0/share/dict/ooo:/usr/lib/openoffice.org2.0/share/dict/ooo
AVAILABLE DICTIONARIES (path is not mandatory for -d option):
/usr/share/hunspell/en_US
/usr/share/hunspell/sv_FI
/usr/share/hunspell/sv_SE
/home/skangas/.openoffice.org/3/user/wordbook/standard
LOADED DICTIONARY:
/usr/share/hunspell/en_US.aff
/usr/share/hunspell/en_US.dic
Could hunspell perhaps be a bit more helpful in these cases? $LANG should properly never be unset, but many other programs do not complain about it. I would suggest to either use some reasonable default, likely "en_US.UTF-8", or otherwise to warn that $LANG is unset and that this will make it impossible to find a ".dic" file.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
skangas
changed the title
"hunspell -D /dev/null" could handle empty LANG better
"hunspell -D /dev/null" could handle empty $LANG better
Aug 26, 2020
Using hunspell 1.7.0 on Debian GNU/Linux (bullseye/sid):
@(#) International Ispell Version 3.2.06 (but really Hunspell 1.7.0)
I think hunspell could handle unset or empty $LANG a bit better:
Here is the locale which produces that:
If I export $LANG, it works better:
Could hunspell perhaps be a bit more helpful in these cases? $LANG should properly never be unset, but many other programs do not complain about it. I would suggest to either use some reasonable default, likely "en_US.UTF-8", or otherwise to warn that $LANG is unset and that this will make it impossible to find a ".dic" file.
Thanks in advance.
The text was updated successfully, but these errors were encountered: