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

Phillip Susi psusi at ubuntu.com
Sat May 17 21:17:23 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

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.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCgAGBQJTd9HjAAoJEI5FoCIzSKrwKL0H/jn+RM8zRoWuSDLPepOJW9iU
2/8rhQo/GilGEeSAp5PeE83mOmjMe82M+tkzge0aw6u5JX7u1eniUXmcCukxS9qd
qvkQufp/VPlorYowjNE+KUS8riS1AFCVAWNybI8/ZQJRT4iHt7g171HV7ALrNCcu
YPbdtCnNItCVV2p6jD5S/lzCzEKiruYcrTsPtKu+5O1v9+kpxUtszgtyPInINFwV
Zd6MGh6uLiRzoTVmRGYnMYw8zJbmWI3Vn+VLM01BBbGhAH+ClZFA5V6aHPao1B1d
JmM4lBU0En/Gu+z32QdKOe/vXQE/suB6sLL4QBndcb27hVrRhcPhuHdstSyl4u4=
=Yx4T
-----END PGP SIGNATURE-----



More information about the parted-devel mailing list