From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web12.5818.1574249248442645024 for ; Wed, 20 Nov 2019 03:27:28 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: zhijux.fan@intel.com) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Nov 2019 03:27:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,221,1571727600"; d="dat'59?scan'59,208,59";a="237696271" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga002.fm.intel.com with ESMTP; 20 Nov 2019 03:27:27 -0800 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 20 Nov 2019 03:27:27 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 20 Nov 2019 03:27:26 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.213]) by shsmsx102.ccr.corp.intel.com ([169.254.2.108]) with mapi id 14.03.0439.000; Wed, 20 Nov 2019 19:27:25 +0800 From: "Fan, ZhijuX" To: "devel@edk2.groups.io" CC: "Gao, Liming" , "Feng, Bob C" Subject: [PATCH] BaseTools:fixed Build failed issue for Non-English OS Thread-Topic: [PATCH] BaseTools:fixed Build failed issue for Non-English OS Thread-Index: AdWflXp7a1q+YtFnRyKhCaD7MOH1+Q== Date: Wed, 20 Nov 2019 11:27:25 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZGIwOTM5YjgtZGZkOC00NTE2LTlhZWItOGU0MTgyMTE0YThiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiK1g4TmtKRytVRDlxZzA3ZUxYVmRpS3YzZHIyRnJqb2VEcEdPaU1wd09HUkdBM0JCWGJrVmN4Y1p4MkF5d09PTSJ9 dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: zhijux.fan@intel.com X-Groupsio-MsgNum: 50936 Content-Type: multipart/mixed; boundary="_000_FAD0D7E0AE0FA54D987F6E72435CAFD50AFE1622SHSMSX101ccrcor_" Content-Language: en-US --_000_FAD0D7E0AE0FA54D987F6E72435CAFD50AFE1622SHSMSX101ccrcor_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=3D2365 Build failed on Non-English OS if structurePcd is used in platform dsc file. When the output of some functions is converted to code,=20 Because different OS Character encoding form differently, there may be problems with some functions The patch is going to fixed this issue Cc: Liming Gao Cc: Bob Feng Signed-off-by: Zhiju.Fan --- BaseTools/Source/Python/Workspace/DscBuildData.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py b/BaseTools/= Source/Python/Workspace/DscBuildData.py index 9192077f90..901d95a413 100644 --- a/BaseTools/Source/Python/Workspace/DscBuildData.py +++ b/BaseTools/Source/Python/Workspace/DscBuildData.py @@ -1752,7 +1752,7 @@ class DscBuildData(PlatformBuildClassObject): except: EdkLogger.error('Build', COMMAND_FAILURE, 'Can not execute com= mand: %s' % Command) Result =3D Process.communicate() - return Process.returncode, Result[0].decode(), Result[1].decode() + return Process.returncode, Result[0].decode(errors=3D'ignore'), Re= sult[1].decode(errors=3D'ignore') =20 @staticmethod def IntToCString(Value, ValueSize): --=20 2.14.1.windows.1 --_000_FAD0D7E0AE0FA54D987F6E72435CAFD50AFE1622SHSMSX101ccrcor_ Content-Disposition: attachment; filename="winmail.dat" Content-Transfer-Encoding: base64 Content-Type: application/ms-tnef; name="winmail.dat" eJ8+IqESAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEJgAEAIQAAADNBQzhFNTQy RUM1MzlFNDc5MUM3MTlEQjQyQ0E5NkM3AE8HAQ2ABAACAAAAAgACAAEFgAMADgAAAOMHCwAUAAsA GwAZAAMASwEBIIADAA4AAADjBwsAFAALABsAGQADAEsBAQiABwAYAAAASVBNLk1pY3Jvc29mdCBN YWlsLk5vdGUAMQgBBIABAD4AAABbUEFUQ0hdIEJhc2VUb29sczpmaXhlZCBCdWlsZCBmYWlsZWQg aXNzdWUgZm9yIE5vbi1FbmdsaXNoIE9TAGcVAQuAAQAhAAAAM0FDOEU1NDJFQzUzOUU0NzkxQzcx OURCNDJDQTk2QzcATwcBA5AGAHwUAAA4AAAAAgF/AAEAAABIAAAAPEZBRDBEN0UwQUUwRkE1NEQ5 ODdGNkU3MjQzNUNBRkQ1MEFGRTE2MjJAU0hTTVNYMTAxLmNjci5jb3JwLmludGVsLmNvbT4ACwAf DgEAAAACAQkQAQAAAHAEAABsBAAANAcAAExaRnWbxbgBYQAKZmJpZAQAAGNjwHBnMTI1MgD+A0Pw dGV4dAH3AqQD4wIABGNoCsBzZXQwIO8HbQKDAFARTTIKgAa0AoCWfQqACMg7CWIxOQ7AvwnDFnIK MhZxAoAVYioJsH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