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

Brian C. Lane bcl at redhat.com
Mon Mar 23 20:57:25 UTC 2015


On Mon, Mar 23, 2015 at 04:27:30PM -0400, Phillip Susi wrote:
> On 3/23/2015 3:36 PM, H. Peter Anvin wrote:
> > So what will you do if you encounter a partition table which
> > contains surrogates?
> 
> I believe iconv will treat them as invalid characters, as the spec
> appears to intend.  I'd be fine with changing parted to accept them,
> provided that the rest of the industry seems to be doing so, but
> otherwise I agree with Brian that we should stick with what the spec says.

If we crash on unexpected input then that's a problem that needs fixing.
But if they just show up as invalid character replacements then that's a
problem with whatever created it, not parted.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)



More information about the parted-devel mailing list