summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorPark, Aiden </o=Intel/ou=External (FYDIBOHF25SPDLT)/cn=Recipients/cn=2b12e933f461410c9b48ef25d06d4759>2019-12-21 02:24:37 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2019-12-23 01:55:21 +0000
commitcaa917491a4bfb295d2afad86e4c34fd48e1f7b5 (patch)
tree08b6152b33197e1a5dbebce6271748403dd543eb /BaseTools
parentec8c74e8bcc66a43ff766254e68b0504f68e024f (diff)
downloadedk2-caa917491a4bfb295d2afad86e4c34fd48e1f7b5.tar.gz
edk2-caa917491a4bfb295d2afad86e4c34fd48e1f7b5.tar.bz2
edk2-caa917491a4bfb295d2afad86e4c34fd48e1f7b5.zip
edksetup.bat stuck on unicode locale Windows
This issue happens under two conditions. 1. Unicode language environment in Windows 2. Python2 (Not reproducible with Python3) Step to reproduce C:\edk2>edksetup.bat forcerebuild The edksetup.bat stuck at 'nmake cleanall'. Signed-off-by: Aiden Park <aiden.park@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/C/Makefiles/NmakeSubdirs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/C/Makefiles/NmakeSubdirs.py b/BaseTools/Source/C/Makefiles/NmakeSubdirs.py
index 356f5aca63..9b699ea086 100644
--- a/BaseTools/Source/C/Makefiles/NmakeSubdirs.py
+++ b/BaseTools/Source/C/Makefiles/NmakeSubdirs.py
@@ -38,7 +38,7 @@ def RunCommand(WorkDir=None, *Args, **kwargs):
stdout, stderr = p.communicate()
message = ""
if stdout is not None:
- message = stdout.decode(encoding='utf-8', errors='ignore') #for compatibility in python 2 and 3
+ message = stdout.decode(errors='ignore') #for compatibility in python 2 and 3
if p.returncode != 0:
raise RuntimeError("Error while execute command \'{0}\' in direcotry {1}\n{2}".format(" ".join(Args), WorkDir, message))