Issue 14455 plistlib unable to read json and binary plist files
Hi, Plist files have actually three flavors: I've started work on integrating the latest patch. As for the rest the patch LGTM. IMHO, we should add a new parameter to the writePlist function, to allow the use of the binary or the json format of plist files instead of the default XML one.
I agree that CFBinaryPlist. Those currently raise struct. We can probably use the context diff. I just use the 'hg diff' command myself, which does the right thing: I as one of the Mac maintainers like the new functionality, but would like to see some changes:
Here is the new patch, allowing read and write binary, json and xml plist files. More information on the contributor agreement: Could you upload it as a context diff?
The generated binary plist and the Cocoa version can both be parsed by plistlib, and result in the same data structure msg - view Author: You will have time to commit. Files File name Uploaded Description Edit plistlib. I'm therefore -1 w. Other tests are made for all the three formats.
Agree, for now this check is redundant. What about out-of-range integer values? Rthe XML version of plists also do not really 'support' those types, and they are converted as follows:
I'm going to do some more spelunking to find out what's going on here, and will adjust the plistlib code to fully represent all values of unsigned bit integers likely based on your code for supporting bit integers Output on a bit system running OSX Actually attach the latest version of the patch. New changeset c2b7dcce by Ronald Oussoren in branch 'default': Hi, Plist files have actually three flavors: