Author serhiy.storchaka
Recipients d9pouces, eric.araujo, jrjsmrtn, markgrandi, ned.deily, python-dev, r.david.murray, ronaldoussoren, serhiy.storchaka
Date 2014-01-15.13:08:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389791298.52.0.319656964495.issue14455@psf.upfronthosting.co.za>
In-reply-to
Content
I see that plistlib incorrectly writes large ints from 2**63 to 2**64-1 as negative values.

>>> d = plistlib.dumps({'a': 18446744073709551615}, fmt=plistlib.FMT_BINARY)
>>> plistlib.loads(d)
{'a': -1}

My patch did this correct (as 128-bit integer), and as you can see the produced file is accepted by Apple's plutil.
History
Date User Action Args
2014-01-15 13:08:18serhiy.storchakasetrecipients: + serhiy.storchaka, ronaldoussoren, ned.deily, eric.araujo, r.david.murray, jrjsmrtn, python-dev, d9pouces, markgrandi
2014-01-15 13:08:18serhiy.storchakasetmessageid: <1389791298.52.0.319656964495.issue14455@psf.upfronthosting.co.za>
2014-01-15 13:08:18serhiy.storchakalinkissue14455 messages
2014-01-15 13:08:18serhiy.storchakacreate