Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

strips apostrophe from iphone name

#275

ideviceinfo --key DeviceName
returns: Jon McCann s iPhone
instead of: Jon McCann’s iPhone

Seems to be a result of http://cgit.sukimashita.com/libimobiledevice.git/commit/?id=abfdd2d...

Teuf proposed:
- if ((content[bytes] < 0x20) && (content[bytes] != 0x09) && (content[bytes] != 0x0a) && (content[bytes] != 0x0d)) + if ((content[bytes] >= 0) && (content[bytes] < 0x20) && (content[bytes] != 0x09) && (content[bytes] != 0x0a) && (content[bytes] != 0x0d))

Which seems to help.

Also see https://bugzilla.gnome.org/show_bug.cgi?id=676423

Reported by Jon McCann · June 25th, 2012 @ 08:46 PM

State: resolved
Milestone: none
Assigned to: Nikias Bassen Nikias Bassen

Activity

  1. teuf
    teuf

    'content' is declared as char content[] so if char is signed, all characters with the high bit set will be negative so they will be < 0x20. This means the code will strip all non-ASCII (multi-byte) UTF-8 characters and replace them with spaces.

    June 25th, 2012 @ 08:51 PM

  2. Nikias Bassen
    Nikias Bassen
    • State changed from new to resolved
    • Assigned user set to Nikias Bassen

    June 25th, 2012 @ 10:17 PM

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.