summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/sitecustomize.py
diff options
context:
space:
mode:
Diffstat (limited to 'BaseTools/Source/Python/sitecustomize.py')
-rw-r--r--BaseTools/Source/Python/sitecustomize.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/sitecustomize.py b/BaseTools/Source/Python/sitecustomize.py
new file mode 100644
index 0000000000..fa5cd40705
--- /dev/null
+++ b/BaseTools/Source/Python/sitecustomize.py
@@ -0,0 +1,9 @@
+import sys
+import locale
+
+if sys.platform == "darwin":
+ DefaultLocal = locale.getdefaultlocale()[1]
+ if DefaultLocal is None:
+ DefaultLocal = 'UTF8'
+ sys.setdefaultencoding(DefaultLocal)
+