[issue41491] plistlib can't load macOS BigSur system LaunchAgent

Ronald Oussoren report at bugs.python.org
Mon Oct 19 08:04:34 EDT 2020


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

Given this plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>hex</key>
        <array>
                <integer>0x0100000c</integer>
        </array>
        <key>oct</key>
        <array>
                <integer>0123</integer>
        </array>
</dict>
</plist>


``plutil -convert json`` prints:

{"hex":[16777228],"oct":[123]}

That is, hexadecimal values are detected and parsed, but "0" as a prefix for octal values (as in C) is not.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41491>
_______________________________________


More information about the Python-bugs-list mailing list