You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
plistlib unable to parse plist comments containing -- #95722
To close the loop, the relevant portion of the document is:
For compatibility, the string " -- " (double-hyphen) must not occur within comments.] Parameter entity references must not be recognized within comments.
for compatibility: [Definition: Marks a sentence describing a feature of XML included solely to ensure that XML remains compatible with SGML.]
Note that Apple's plist parser does permit such comments, so this may be a source of future issues if neither system changes. I have filed a radar with Apple.
Activity
ronaldoussoren commentedon Aug 6, 2022
See the XML specification: https://www.w3.org/TR/xml/#sec-comments
This comment is not well-formed, which is why it is rejected by the XML parser used by plistlib.
ronaldoussoren commentedon Aug 7, 2022
I'm closing this issue because this is IMO not a bug in plistlib, but malformed input.
bjo0 commentedon Aug 8, 2022
To close the loop, the relevant portion of the document is:
Note that Apple's plist parser does permit such comments, so this may be a source of future issues if neither system changes. I have filed a radar with Apple.