emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#15591: closed (gpt mishandles non ascii partition


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#15591: closed (gpt mishandles non ascii partition names)
Date: Mon, 23 Dec 2013 03:46:02 +0000

Your message dated Sun, 22 Dec 2013 19:45:06 -0800
with message-id <address@hidden>
and subject line Re: [PATCH] libparted: handle i18n gpt partition names 
correctly
has caused the debbugs.gnu.org bug report #15591,
regarding gpt mishandles non ascii partition names
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
15591: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15591
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: gpt mishandles non ascii partition names Date: Fri, 11 Oct 2013 14:58:57 -0400 User-agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Original bug report:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1238446

The gpt partition table has 16 bit characters for the name, which I
assume are supposed to be UTF-16, but the bloody uefi standard is moot
on the subject.  Currently parted simply decimates the characters,
throwing out the upper 8 bits.  This corrupts characters that aren't
simple ascii, and at some later point, strlist.c calls mbstrtowcs(),
which chokes on the corrupt name causing parted to bail out with
"Error during translation".

I think that gpt.c needs to translate the UTF-16 to the native
multibyte encoding, but I have no idea how to do that.  The C standard
conversion functions all seem to use the current locale and don't have
a way to override it if you know this string is in UTF-16 ( and maybe
the current locale is UTF-8 ).

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSWEpxAAoJEJrBOlT6nu75YYYH+gOqxQdKmRmPFfSAFbkOnXzf
9SqhaamWXNmqWLCaKHb4COO0S/Wg5Uu5Kzw0chqFbty0+S+Wa13/SM97S25SxUmh
q3sVnWbVwbOW5D2NAGhC7jjGwpZ9F4k45xE4DaHntSD1lsoYfq5+D25+4h7GTNqL
vliuuFhzUs5dQke/ONFnRfDb202ZC4j+HE7nBRwRm7VsUswsiiPVV8dz5iSQhkD1
/tx3N63A9aViBpFLlgGZu8XSaBHoE+4ZZ/COEGPzga372GDXyccODe0QfmErqWKI
3s0juqk5uOhUWvrWfzaYDtFEG+3AXuIXm8OT/SEQ4uKlqpCBKsFoBQLRGvoEPOE=
=0KW9
-----END PGP SIGNATURE-----



--- End Message ---
--- Begin Message --- Subject: Re: [PATCH] libparted: handle i18n gpt partition names correctly Date: Sun, 22 Dec 2013 19:45:06 -0800
Perfect.  Thanks!  Marking this "done" in the bug-tracker.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]