From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 3E7931A1E56 for ; Wed, 31 Aug 2016 18:07:08 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP; 31 Aug 2016 18:07:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,264,1470726000"; d="scan'208";a="755743701" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by FMSMGA003.fm.intel.com with ESMTP; 31 Aug 2016 18:07:06 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 31 Aug 2016 18:07:06 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.109]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.166]) with mapi id 14.03.0248.002; Thu, 1 Sep 2016 09:07:01 +0800 From: "Gao, Liming" To: "Foster, Matthew I" , wang xiaofeng , "edk2-devel@lists.01.org" Thread-Topic: [edk2] UnicodeError: UTF-16 stream does not start with BOM error when update from UDK2015 to latest Github trunk Thread-Index: AQHRc4BCDI/7vx8q9kmQeDQf1UhveZ9EoJeAgR/tLvCAAGIgkA== Date: Thu, 1 Sep 2016 01:07:00 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14B3E0F16@shsmsx102.ccr.corp.intel.com> References: <516d6a57.6ba8.15330c71162.Coremail.winggundum82@163.com> <4A89E2EF3DFEDB4C8BFDE51014F606A114BC1060@SHSMSX101.ccr.corp.intel.com> <3E72E29DAAE6E94BB0236F004CFB699B7884E150@fmsmsx107.amr.corp.intel.com> In-Reply-To: <3E72E29DAAE6E94BB0236F004CFB699B7884E150@fmsmsx107.amr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: UnicodeError: UTF-16 stream does not start with BOM error when update from UDK2015 to latest Github trunk X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2016 01:07:08 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Matthew: The temp way is to convert all uni files to UTF16 format. You can use edk= 2 trunk BaseTools\Scripts\ConvertUni.py to convert uni file format.=20 Thanks Liming > -----Original Message----- > From: Foster, Matthew I > Sent: Thursday, September 01, 2016 3:04 AM > To: Gao, Liming ; wang xiaofeng > ; edk2-devel@lists.01.org > Subject: RE: [edk2] UnicodeError: UTF-16 stream does not start with BOM > error when update from UDK2015 to latest Github trunk >=20 > Is there a way to work-around this error without having to upgrade to the > newest BaseTools? >=20 > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > Gao, Liming > Sent: Monday, February 29, 2016 11:08 PM > To: wang xiaofeng ; edk2-devel@lists.01.org > Subject: Re: [edk2] UnicodeError: UTF-16 stream does not start with BOM > error when update from UDK2015 to latest Github trunk >=20 > Do you get the latest BaseTools binary win32? >=20 > > -----Original Message----- > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > > wang xiaofeng > > Sent: Tuesday, March 01, 2016 2:04 PM > > To: edk2-devel@lists.01.org > > Subject: [edk2] UnicodeError: UTF-16 stream does not start with BOM > > error when update from UDK2015 to latest Github trunk > > > > Hi All Edk2 developer, > > I meet a build error when update code from UDK2015 to latest > > Github trunk. Do anyone meet similar issue before? I sync NetworkPkg > > seperately to latest code but find the following error: > > > > > > build... > > : error C0DE: Unknown fatal error when processing > > [e:\code\cl174\NetworkPkg\Ip6Dxe\Ip6Dxe.inf] > > (Please send email to edk2-devel@lists.sourceforge.net for help, > > attaching following call stack trace!) > > > > > > (Python 2.7.3 on win32) Traceback (most recent call last): > > File "build.py", line 2032, in Main > > File "build.py", line 1788, in Launch > > File "build.py", line 1618, in _MultiThreadBuildPlatform > > File > > > "c:\Users\Public\Documents\BuildPool\BaseTools\build\Source\Python\Aut > > oGen\AutoGen.py", line 3446, in CreateCodeFile > > File > > > "c:\Users\Public\Documents\BuildPool\BaseTools\build\Source\Python\Aut > > oGen\AutoGen.py", line 2854, in _GetAutoGenFileList > > File > > > "c:\Users\Public\Documents\BuildPool\BaseTools\build\Source\Python\Aut > > oGen\GenC.py", line 1552, in CreateCode > > File > > > "c:\Users\Public\Documents\BuildPool\BaseTools\build\Source\Python\Aut > > oGen\GenC.py", line 1456, in CreateUnicodeStringCode > > File > > > "c:\Users\Public\Documents\BuildPool\BaseTools\build\Source\Python\Aut > > oGen\StrGather.py", line 600, in GetStringFiles > > File > > > "c:\Users\Public\Documents\BuildPool\BaseTools\build\Source\Python\Aut > > oGen\UniClassObject.py", line 203, in __init__ > > File > > > "c:\Users\Public\Documents\BuildPool\BaseTools\build\Source\Python\Aut > > oGen\UniClassObject.py", line 463, in LoadUniFiles > > File > > > "c:\Users\Public\Documents\BuildPool\BaseTools\build\Source\Python\Aut > > oGen\UniClassObject.py", line 377, in LoadUniFile > > File > > > "c:\Users\Public\Documents\BuildPool\BaseTools\build\Source\Python\Aut > > oGen\UniClassObject.py", line 318, in PreProcess > > File "C:\Python\32-bit\2.7\lib\codecs.py", line 684, in next > > File "C:\Python\32-bit\2.7\lib\codecs.py", line 615, in next > > File "C:\Python\32-bit\2.7\lib\codecs.py", line 530, in readline > > File "C:\Python\32-bit\2.7\lib\codecs.py", line 477, in read > > File "C:\Python\32-bit\2.7\lib\encodings\utf_16.py", line 112, in > > decode > > UnicodeError: UTF-16 stream does not start with BOM > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel