The sitecustomize module in BaseTools was used to set the default text encoding on macOS systems. Setting the default system encoding is unsupported in Python 3, so remove the sitecustomize module.
Cc: Yonghong Zhu <[email protected]> Cc: Liming Gao <[email protected]> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Alex James <[email protected]> --- BaseTools/Source/Python/sitecustomize.py | 21 -------------------- 1 file changed, 21 deletions(-) diff --git a/BaseTools/Source/Python/sitecustomize.py b/BaseTools/Source/Python/sitecustomize.py deleted file mode 100644 index 3afa90700e..0000000000 --- a/BaseTools/Source/Python/sitecustomize.py +++ /dev/null @@ -1,21 +0,0 @@ -## @file -# -# -# Copyright (c) 2009 - 2014, Apple Inc. All rights reserved.<BR> -# -# This program and the accompanying materials -# are licensed and made available under the terms and conditions of the BSD License -# which accompanies this distribution. The full text of the license may be found at -# http://opensource.org/licenses/bsd-license.php -# -# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -import sys -import locale - -if sys.platform == "darwin": - DefaultLocal = locale.getdefaultlocale()[1] - if DefaultLocal is None: - DefaultLocal = 'UTF8' - sys.setdefaultencoding(DefaultLocal) - -- 2.19.1 _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

