* Re: UnicodeError: UTF-16 stream does not start with BOM error when update from UDK2015 to latest Github trunk
2016-08-31 19:04 ` UnicodeError: UTF-16 stream does not start with BOM error when update from UDK2015 to latest Github trunk Foster, Matthew I
@ 2016-09-01 1:07 ` Gao, Liming
0 siblings, 0 replies; 2+ messages in thread
From: Gao, Liming @ 2016-09-01 1:07 UTC (permalink / raw)
To: Foster, Matthew I, wang xiaofeng, edk2-devel@lists.01.org
Matthew:
The temp way is to convert all uni files to UTF16 format. You can use edk2 trunk BaseTools\Scripts\ConvertUni.py to convert uni file format.
Thanks
Liming
> -----Original Message-----
> From: Foster, Matthew I
> Sent: Thursday, September 01, 2016 3:04 AM
> To: Gao, Liming <liming.gao@intel.com>; wang xiaofeng
> <winggundum82@163.com>; 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
>
> Is there a way to work-around this error without having to upgrade to the
> newest BaseTools?
>
> -----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 <winggundum82@163.com>; 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
>
> Do you get the latest BaseTools binary win32?
>
> > -----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
^ permalink raw reply [flat|nested] 2+ messages in thread