[issue10733] plistlib rejects strings containing control characters

2015-04-23 Thread Behdad Esfahbod
Behdad Esfahbod added the comment: > Replacing all control characters by entities before trying to parse the Plist > XML would likely be the best way forward. That wouldn't work. Control characters are disallowed in XML's character set, so they are invalid even if input as entities. Unfortu

[issue10733] plistlib rejects strings containing control characters

2012-05-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10733] plistlib rejects strings containing control characters

2010-12-24 Thread Mitchell Model
Mitchell Model added the comment: Thanks for letting me know (and with a personalized message, yet!). I wasn't paying attention -- i verified that the problem exists in 2.7 and 3.1 and I just dragged 3.1 down to 2.6. Although I've been working furiously in Python for the past six months, I ha

[issue10733] plistlib rejects strings containing control characters

2010-12-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10733] plistlib rejects strings containing control characters

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mitchell: 2.6 is closed to revision except for security issues -- nosy: +terry.reedy resolution: wont fix -> versions: +Python 3.2 -Python 2.6 ___ Python tracker

[issue10733] plistlib rejects strings containing control characters

2010-12-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree with Martin that this is a tricky one. The file is problematic because it is invalid XML[1], however Apple's tools are perfectly happy to proces the file and as Mitchell notes plistlib exists to interoperate with Apple's plist files. I'm therefore

[issue10733] plistlib rejects strings containing control characters

2010-12-19 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> wont fix stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue10733] plistlib rejects strings containing control characters

2010-12-18 Thread Mitchell Model
Mitchell Model added the comment: I can see where that does make it tricky. (I also tried reading the plist after opening the file as binary, but no luck.) The problem here, of course, is that the only reason for the existence of this library is to read Apple's plist files, however XML-invali

[issue10733] plistlib rejects strings containing control characters

2010-12-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: This is tricky. It's clearly ill-formed XML, so I'm not sure that this needs to be bug-compatible with Apple's implementation. -- nosy: +loewis ___ Python tracker __

[issue10733] plistlib rejects strings containing control characters

2010-12-18 Thread Mitchell Model
New submission from Mitchell Model : plistlib rejects control characters found in XML plists that Apple's 'plutil lint' accepts. I have attached my Terminal preferences as an example. (plistlib accepts the contents of the default Terminal preferences file) -- assignee: ronaldoussoren c