[parted-devel] [PATCH] GPT strings are UCS-2LE not UTF-16

H. Peter Anvin hpa at zytor.com
Sat Mar 21 15:32:44 UTC 2015


On 03/20/2015 05:57 PM, Phillip Susi wrote:
> On 03/05/2015 07:45 PM, H. Peter Anvin wrote:
>>> Good catch, I didn't realize UTF-16 inserted the BOM when
>>> writing. Two thumbs up.
> 
>> Just saw this.  Shouldn't this be UTF-16LE?
> 
> I'm not really sure what the difference is.  What does the UEFI spec say
> ?
> 

It isn't about the UEFI spec but rather what iconv expects.  The string
"UTF-16LE" produces littleendian UTF-16 without BOM.

	-hpa




More information about the parted-devel mailing list