Remove dependency on en_US.UTF-8 locale (#613)
Set locale to C.utf8 instead of en_US.UTF-8 Avoid forcing the user to use en_US.UTF-8. Most Linux systems have C.utf8.
This commit is contained in:
committad av
GitHub
förälder
0c6cec5671
incheckning
96a25e8cbc
+2
-2
@@ -1120,10 +1120,10 @@ def print_status(msg):
|
||||
|
||||
def set_locale_encoding():
|
||||
try:
|
||||
locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
|
||||
locale.setlocale(locale.LC_ALL, "C.UTF-8")
|
||||
except locale.Error as error:
|
||||
console_error(
|
||||
"Please ensure that the 'en_US.UTF-8' locale is available on your system.",
|
||||
"Please ensure that the 'C.UTF-8' locale is available on your system.",
|
||||
exit=False,
|
||||
)
|
||||
console_error(error)
|
||||
|
||||
Referens i nytt ärende
Block a user