]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/Makefiles/NmakeSubdirs.py
BaseTools:Coding problems caused by special characters
[mirror_edk2.git] / BaseTools / Source / C / Makefiles / NmakeSubdirs.py
index 29bb5dfa7261cca41c2c46e38202e3ec493c551c..abcbea89a46c91a720282579b74624bd6561c9a8 100644 (file)
@@ -44,7 +44,7 @@ def RunCommand(WorkDir=None, *Args, **kwargs):
     stdout, stderr = p.communicate()\r
     message = ""\r
     if stdout is not None:\r
-        message = stdout.decode() #for compatibility in python 2 and 3\r
+        message = stdout.decode(encoding='utf-8', errors='ignore') #for compatibility in python 2 and 3\r
 \r
     if p.returncode != 0:\r
         raise RuntimeError("Error while execute command \'{0}\' in direcotry {1}\n{2}".format(" ".join(Args), WorkDir, message))\r