2010-07-30 02:13:20 Jonathan Callen napisaƂ(a): > On 07/29/2010 07:16 PM, Arfrever Frehtes Taifersar Arahesis wrote: > > + locale="$(python -c 'import os; print(os.environ.get("LC_ALL", os.environ.get("LC_CTYPE", os.environ.get("LANG", "POSIX"))))')" > > + if [[ "${locale}" != *.UTF-8 ]]; then > > Shouldn't you be checking the output of `locale charmap` instead of the > actual contents of the LC_ALL/LC_CTYPE/LANG variables? You currently > are reporting an error if someone is using the "en_US.utf8" locale > (which *is* a legal UTF-8 locale, and should not be an error). OK. I will check output of `locale charmap`, but the actual locale is more useful in error message. -- Arfrever Frehtes Taifersar Arahesis