From 8ddec24dea74a7e172cb67d5bcaf6c74db3ac6f9 Mon Sep 17 00:00:00 2001 From: Bob Feng Date: Tue, 16 Jul 2019 17:14:08 +0800 Subject: 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 Cc: Liming Gao Signed-off-by: Zhiju.Fan Reviewed-by: Liming Gao --- BaseTools/Source/Python/Common/VpdInfoFile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BaseTools/Source/Python/Common/VpdInfoFile.py') diff --git a/BaseTools/Source/Python/Common/VpdInfoFile.py b/BaseTools/Source/Python/Common/VpdInfoFile.py index bc69a9010d..4249b9f899 100644 --- a/BaseTools/Source/Python/Common/VpdInfoFile.py +++ b/BaseTools/Source/Python/Common/VpdInfoFile.py @@ -243,7 +243,7 @@ def CallExtenalBPDGTool(ToolPath, VpdFileName): except Exception as X: EdkLogger.error("BPDG", BuildToolError.COMMAND_FAILURE, ExtraData=str(X)) (out, error) = PopenObject.communicate() - print(out.decode(encoding='utf-8', errors='ignore')) + print(out.decode()) while PopenObject.returncode is None : PopenObject.wait() -- cgit v1.2.3