GNOME Bugzilla – Bug 676423
not showing correct name of removable device
Last modified: 2012-06-27 21:45:27 UTC
Created attachment 214493 [details] screenshot As you can see from the attachment, we're not showing the correct name of the removable device. It is missing an "'".
Cosimo and I dug into this a bit. It seems that libimobiledevice is stripping out the UTF character here. http://cgit.sukimashita.com/libimobiledevice.git/tree/src/property_list_service.c#n251 I added: printf("Converting %x to %x\n", content[bytes] & 0xff, 0x20); and got: Converting e2 to 20 Converting 80 to 20 Converting 99 to 20 Jon McCann s iPhone When I ran: ideviceinfo --key DeviceName e2 80 99 is: http://www.fileformat.info/info/unicode/char/2019/index.htm
Commenting out the code in question seems to work. It gives me: Jon McCann’s iPhone
Seems the problem was introduced in: http://cgit.sukimashita.com/libimobiledevice.git/commit/?id=abfdd2d2c2a0ba4236d90fba1dffe50e99ae5829 The original code was: http://cgit.sukimashita.com/libimobiledevice.git/commit/?id=9a380d23e5c45c30509631401a35a71414377656 Which according to teuf was "made because we were getting 0x00 in the middle of an xml document, which caused xml parsing to stop prematurely."
Created http://libiphone.lighthouseapp.com/projects/27916-libiphone/tickets/275-strips-apostrophe-from-iphone-name
Upstream bug in libimobiledevice is fixed, nothing for us to do further here.