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

H. Peter Anvin hpa at zytor.com
Fri Mar 6 00:45:53 UTC 2015


On 05/17/2014 02:17 PM, Phillip Susi wrote:
> On 05/16/2014 07:45 PM, Brian C. Lane wrote:
>> There was a problem using UTF-16, it was writing the Byte Order
>> Mark before the string which caused problems with older versions of
>> parted reading the partition name. The test was skipping these 2
>> bytes when checking the written string.
> 
> 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?

	-hpa




More information about the parted-devel mailing list