We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9f19b8 commit 05b976cCopy full SHA for 05b976c
python/taichi/tools/diagnose.py
@@ -16,8 +16,9 @@ def main():
16
print(f"platform: {platform.platform()}")
17
print(f'architecture: {" ".join(platform.architecture())}')
18
print(f"uname: {platform.uname()}")
19
-
20
- print(f'locale: {".".join(locale.getdefaultlocale())}')
+ locale.setlocale(locale.LC_ALL, '')
+ loc, enc = locale.getlocale(), locale.getpreferredencoding()
21
+ print(f'locale: {loc[0]}.{enc if enc else loc[1]}')
22
print(f'PATH: {os.environ.get("PATH")}')
23
print(f"PYTHONPATH: {sys.path}")
24
print("")
0 commit comments