mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
fix: LC_ALL handling
This commit is contained in:
1 parent
9b80c98273
commit
59bde45949
2 files changed
+1
-4
No files matched your search
@@ -1,4 +1,3 @@
|
||||
import os
|
||||
import locale
|
||||
|
||||
|
||||
@@ -13,5 +12,3 @@ def number(num: int | float) -> str:
|
||||
|
||||
def set_locale() -> None:
|
||||
locale.setlocale(locale.LC_ALL, "")
|
||||
user_loc = loc if (loc := os.getenv("LC_CTYPE")) else "en_US.UTF-8"
|
||||
locale.setlocale(locale.LC_NUMERIC, user_loc)
|
||||
Reference in new issue
Block a user