mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Display a more helpful error when the locale is wrong
This commit is contained in:
parent
f2bb0395bf
commit
bc6975973e
1 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,9 @@ if sys.version_info[0] < 3 or sys.version_info[1] < 9:
|
||||||
try:
|
try:
|
||||||
"テスト".encode(sys.getfilesystemencoding())
|
"テスト".encode(sys.getfilesystemencoding())
|
||||||
except UnicodeEncodeError as exc:
|
except UnicodeEncodeError as exc:
|
||||||
raise Exception("Anki requires a UTF-8 locale.") from exc
|
print("Anki requires a UTF-8 locale.")
|
||||||
|
print("Please Google 'how to change locale on [your Linux distro]'")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
from .package import packaged_build_setup
|
from .package import packaged_build_setup
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue