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 mher
Recipients halfjuice, mher
Date 2013-06-08.18:28:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1370716108.58.0.820879051945.issue18168@psf.upfronthosting.co.za>
In-reply-to
Content
I think this is not a bug. plistlib api accepts dict (not OrderedDict) and sorted output is a valid output. plistlib sorts dictionaries to be consistent with Apple's tools.

property list format [1] uses CFDictionary [2] with CFString keys. CFDictionary is unordered and the plist example in the format [1] is unordered too. But plutil [3] command sorts dictionaries. It is easy to observe by self-converting plist files with "plutil -convert xml1 test.plist" command.

1. https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man5/plist.5.html 

2. http://developer.apple.com/library/mac/#documentation/CoreFoundation/Reference/CFDictionaryRef/Reference/reference.html

3. https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/plutil.1.html
History
Date User Action Args
2013-06-08 18:28:28mhersetrecipients: + mher, halfjuice
2013-06-08 18:28:28mhersetmessageid: <1370716108.58.0.820879051945.issue18168@psf.upfronthosting.co.za>
2013-06-08 18:28:28mherlinkissue18168 messages
2013-06-08 18:28:28mhercreate