libplist utf-8 conversion bugginess
-
Eric Monti
more context: found the offending codepage -- also note: surrounding values also exhibit the same problem
http://www.utf8-chartable.de/unicode-utf8-table.pl?start=127775
-
Martin S.
- Tag set to conversion, encoding, libplist, utf-8
- Assigned user set to Nikias Bassen
I was able to reproduce the problem, however this is related to libxml2 freaking out on the characters:
Not sure yet who is wrong or right here.parser error : Char 0xD83C out of allowed range parser error : PCDATA invalid Char value 55356 parser error : Char 0xDF1F out of allowed range parser error : PCDATA invalid Char value 57119 -
Shane Garrett
Ran across the same issue, it looks like the problem is with the plist_utf16_to_utf8() function. It doesn't correctly handle UTF-8 encoding of UTF-16 surrogate pairs, which the sample plist has.
-
Martin S.
- State changed from new to resolved
- Milestone set to 1.2.0 Release
The issue is fixed in git HEAD master of libplist.
Downstream ticket:
https://github.com/libimobiledevice/libplist/pull/2
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
