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.web09.12634.1576866280953832432 for ; Fri, 20 Dec 2019 10:24:41 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=v45pIz1f; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: aiden.park@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Dec 2019 10:24:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,336,1571727600"; d="scan'208";a="366451675" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga004.jf.intel.com with ESMTP; 20 Dec 2019 10:24:39 -0800 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 20 Dec 2019 10:24:39 -0800 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 20 Dec 2019 10:24:39 -0800 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.44) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 20 Dec 2019 10:24:39 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AH2e5dQBu4GebRsx6ebh7kGhTtJ00GWl2QNN/Cutd62CWR1DsPsyuuL7lsKDg+zYZZSUDBT3JzJOUsvzKLVCnvj61x7IiCFZW2SNnQGroE+4e2jUV0aV6YAHLYtsBBPwIBq0NuRsEiuc499i66BNZ0T5oh76a3uyQ3GO/OiTyCNE1ZKXvX8pkcbltKXKMBrDy6I6oqcsejLS4/oW5u8y6kM7Cca3mlxZ5V2YJIH83lfvqD8bqBNisbMQvKxUl0iyVU4naZGQ6e/WzpxQ2PmF7/iQO/OloX90DmN7tzJ4cFK8rNwIQEYkgbkEAWuliQ6TvKH9RXxKbtewp0WoiN2VHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KtqrHBaHCGkYoR5MQq3IGHIcrJB/kHz6dL/s/Yoz3BY=; b=hp8kMODpZj3+n/F/0rVG3iYz3ColsE77WJfpr16F4HXmJejQelCsQGPaoEnwraWe3VxtUI+zB6hw4fx1t2jdGmxrNl3rABx3oVfORl82iUIsQUPOKk9pwWUXn57FCoWFZU7eaGvuEM6h+7DW/O1CO3kERX7z+twyFAfB/nFgHfSsnw316sEj7hnxkkRLJhiW2s6y9hlMAXczZknb1NnoVXlfRIoJeunI8ysibBG7p41RmI7Y6dCnx6Jg94ll15PL3OHWCJdGDxAERNeePKI2lANx1dIGiBTKXRcS3efKYhLlUlfUAVBz7nt6GuaRxn6p6SzyCAQROdU16sp3ghzSPg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KtqrHBaHCGkYoR5MQq3IGHIcrJB/kHz6dL/s/Yoz3BY=; b=v45pIz1f3ahhq4YfIAu3ms5QeVxelcTFKf4BmU/8GBbZwZNgNK0i+0K7L8FO74fbgGZCzfmbiOQQxHSinVdOq5z5y/VaNhYZTeKMsNDmAJZX+2PT9HsxbbV603MeDllCizOC64Ezh6/R3CMpeO61ThAs0nc7+EXOFyAJuuieKHw= Received: from BN8PR11MB3619.namprd11.prod.outlook.com (20.178.219.86) by BN8PR11MB3764.namprd11.prod.outlook.com (20.178.222.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2559.14; Fri, 20 Dec 2019 18:24:37 +0000 Received: from BN8PR11MB3619.namprd11.prod.outlook.com ([fe80::ed50:624b:38b9:e703]) by BN8PR11MB3619.namprd11.prod.outlook.com ([fe80::ed50:624b:38b9:e703%4]) with mapi id 15.20.2559.015; Fri, 20 Dec 2019 18:24:37 +0000 From: "Park, Aiden" To: "Feng, Bob C" , "devel@edk2.groups.io" Subject: [PATCH V2] [edk2/BaseTools] edksetup.bat stuck on unicode locale Windows Thread-Topic: [PATCH V2] [edk2/BaseTools] edksetup.bat stuck on unicode locale Windows Thread-Index: AdW3Yp6ULT6acp7YSjm1LVLm5h3z3A== Date: Fri, 20 Dec 2019 18:24:37 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.2.0.6 dlp-product: dlpe-windows authentication-results: spf=none (sender IP is ) smtp.mailfrom=aiden.park@intel.com; x-originating-ip: [134.134.136.205] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4838f6fa-5494-47a1-3227-08d78579df04 x-ms-traffictypediagnostic: BN8PR11MB3764: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-forefront-prvs: 025796F161 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(39860400002)(396003)(366004)(136003)(346002)(189003)(199004)(52536014)(7696005)(316002)(110136005)(76116006)(66556008)(66446008)(5660300002)(86362001)(8676002)(81156014)(71200400001)(33656002)(64756008)(9686003)(8936002)(2906002)(66476007)(6506007)(186003)(66946007)(478600001)(26005)(55016002)(81166006);DIR:OUT;SFP:1102;SCL:1;SRVR:BN8PR11MB3764;H:BN8PR11MB3619.namprd11.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 1WJ9rQZL4NfiJoxAi7xsKw4Vt1oNjzFfpPU3BUNNpYD6GKMWI+CZgsGu/qvuP+AovD4cf4U7rNQfa4xPfg/osB1HHk+jt+KSI+9Y3ZzZUGTMR7YmRYQs7nQxxEYAJhm0FezMbc1oAi06/acvn+nHpkQArqA88inbTenhMfeFP8TEquW032KSXmKYvp4MrZqeigc8/91I8EasXZ4Cxu6DefNiylcKtQ1+kMKZBrcVSNf86GQetpZQXSHkyPKiE0bXXS652QGwllAkYNoREsCZvXx6TazHUdfZqFaVDezOafTHfsfvJSPpRvvXg0Nx6hbs3iOtSutWDuN3yNjh13ySox5arfLXDh28GhiZE0iJ4QFlGRvtLRjuXKmEiWxNummFl/FhEEQgLZ1jaOpUs7zMemvfPlU8aTBvCkjwbJN9HJsaG66UFRsqOqa2DfeMcsVS MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 4838f6fa-5494-47a1-3227-08d78579df04 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2019 18:24:37.4046 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 59I6DRHWlDAwJI0znnmx8/3SA71G1o37MNr/BIBFpUPoXLebxK/sv5gQQwYXRObuPtcpR9LZ6ye1no+6RTmR7w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR11MB3764 Return-Path: aiden.park@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 --- BaseTools/Source/C/Makefiles/NmakeSubdirs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/C/Makefiles/NmakeSubdirs.py b/BaseTools/Sourc= e/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=3DNone, *Args, **kwargs): stdout, stderr =3D p.communicate() message =3D "" if stdout is not None: - message =3D stdout.decode(encoding=3D'utf-8', errors=3D'ignore') #= for compatibility in python 2 and 3 + message =3D stdout.decode(errors=3D'ignore') #for compatibility in= python 2 and 3 =20 if p.returncode !=3D 0: raise RuntimeError("Error while execute command \'{0}\' in direcot= ry {1}\n{2}".format(" ".join(Args), WorkDir, message)) --=20 2.16.2.windows.1