mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2025-02-16 21:38:33 +00:00
ensure encoding check is case-insensitive
encoding will fail if it isn't 'UTF-8', resulting in encodings of 'utf-8' to fail, too... This normalizes it.
This commit is contained in:
parent
4799998884
commit
e6e3bfead1
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ if not USE_COLOR:
|
|||
# dont show colors if USE_COLOR is False
|
||||
ANSI = {k: '' for k in ANSI.keys()}
|
||||
|
||||
if sys.stdout.encoding != 'UTF-8':
|
||||
if sys.stdout.encoding.lower() != 'UTF-8':
|
||||
print('[X] Your system is running python3 scripts with a bad locale setting: {} (it should be UTF-8).'.format(sys.stdout.encoding))
|
||||
print(' To fix it, add the line "export PYTHONIOENCODING=utf8" to your ~/.bashrc file (without quotes)')
|
||||
print('')
|
||||
|
|
Loading…
Add table
Reference in a new issue