This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients Jeffrey.Kintscher, jckwhet, ned.deily, ronaldoussoren
Date 2020-10-19.12:04:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1603109074.73.0.446586397782.issue41491@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-10-19 12:04:34ronaldoussorensetrecipients: + ronaldoussoren, ned.deily, Jeffrey.Kintscher, jckwhet
2020-10-19 12:04:34ronaldoussorensetmessageid: <1603109074.73.0.446586397782.issue41491@roundup.psfhosted.org>
2020-10-19 12:04:34ronaldoussorenlinkissue41491 messages
2020-10-19 12:04:34ronaldoussorencreate