]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Do not call sys.setdefaultencoding with python 3
authorVitaly Cheptsov via Groups.Io <vit9696=protonmail.com@groups.io>
Sun, 20 Oct 2019 10:26:18 +0000 (18:26 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Wed, 23 Oct 2019 06:25:23 +0000 (14:25 +0800)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2301

This interface was a originally a no-op in python 3, and now
is fully removed causing a build warning on macOS (Darwin).

Signed-off-by: Vitaly Cheptsov <vit9696@protonmail.com>>
Acked-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/sitecustomize.py

index 7dbbf8a232ab19ed1bbec719d6f327940ee9e5a9..50783e1b3af0645d2f861d543aa0887014ef5981 100644 (file)
@@ -7,7 +7,7 @@
 import sys\r
 import locale\r
 \r
-if sys.platform == "darwin":\r
+if sys.platform == "darwin" and sys.version_info[0] < 3:\r
   DefaultLocal = locale.getdefaultlocale()[1]\r
   if DefaultLocal is None:\r
     DefaultLocal = 'UTF8'\r