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

Phillip Susi psusi at ubuntu.com
Tue Mar 24 17:17:21 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 3/24/2015 1:06 PM, H. Peter Anvin wrote:
> If you read a partition table, and a partition entry you are not 
> modifying gets changed from surrogates to U+FFFD, that is
> corruption.
> 
> I suspect, but I don't know, that UCS-2 was specified before UTF-16
> was created.  It also means UEFI software isn't required to
> interpret surrogates, and would typically display them as ?? or
> something like that, which isn't really a problem.

Ahh, then there's no problem since parted does not modify the existing
string unless told to.  That is to say, it does not automatically read
the string, translate it to UTF-8 ( where the surrogates would become
?? ), then translate and write it back.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iQEcBAEBAgAGBQJVEZwhAAoJENRVrw2cjl5RLr0H/R2r7pCiExlf4f/vaB4SgFON
0qmNVZPoEUkBaHQ8uN8Sz8HBEVX/+/Zsi+Q/+TJ1LFrgE5quUzpskxHGZin8kQnc
9Wzyb71hdnSAKPg4JxQkWPRRKwWE+eoU8Nb/KSWun6KRcMLNTvTIXfd/SzyyKnn6
I6NAbplkHI6xoKFyEiK1PzAfeQiGP3XFJc4ps6OZw9C2n+u1vGURVq7mAYGYWkKN
+JotOyhSZEMLbqbWO641zwMksYLpZadNvfC50bzLrZLGg5HjAEXB5mWl5vvvwJOw
rpqdL+5XfBGDQ23JT5T60rOEf6FvHZ1fmNkJnCQADQ9UB6/n4Aeaj9Hun0jM13U=
=btD4
-----END PGP SIGNATURE-----



More information about the parted-devel mailing list