diff options
author | Bob Feng <bob.c.feng@intel.com> | 2019-07-16 17:14:08 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2019-08-01 15:36:48 +0800 |
commit | 8ddec24dea74a7e172cb67d5bcaf6c74db3ac6f9 (patch) | |
tree | 9592b86222c312772fa01a2beba8e6ffd67d74b6 /BaseTools/Source/Python/Workspace | |
parent | 307e1650be267b67db7be1089e0979ace460d830 (diff) | |
download | edk2-8ddec24dea74a7e172cb67d5bcaf6c74db3ac6f9.tar.gz edk2-8ddec24dea74a7e172cb67d5bcaf6c74db3ac6f9.tar.bz2 edk2-8ddec24dea74a7e172cb67d5bcaf6c74db3ac6f9.zip |
BaseTools:Updata the output encoding of the Popen function
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=2015
Not all output works in utf-8, so change the encoding to
the default
This patch is going to fix that issue.
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace')
-rw-r--r-- | BaseTools/Source/Python/Workspace/DscBuildData.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py b/BaseTools/Source/Python/Workspace/DscBuildData.py index 985f877525..620e48fa7f 100644 --- a/BaseTools/Source/Python/Workspace/DscBuildData.py +++ b/BaseTools/Source/Python/Workspace/DscBuildData.py @@ -1735,7 +1735,7 @@ class DscBuildData(PlatformBuildClassObject): except:
EdkLogger.error('Build', COMMAND_FAILURE, 'Can not execute command: %s' % Command)
Result = Process.communicate()
- return Process.returncode, Result[0].decode(encoding='utf-8', errors='ignore'), Result[1].decode(encoding='utf-8', errors='ignore')
+ return Process.returncode, Result[0].decode(), Result[1].decode()
@staticmethod
def IntToCString(Value, ValueSize):
|