Closed Bibliofile closed 5 years ago
The binary plist contains uid
typed values which plutil
seems to convert into an integer when converting the plist to xml.
These are used exclusively by NSKeyedArchiver
and are currently not supported as they break feature parity between binary and xml plists. I have no issue with the library supporting uid
s though if someone (you) has a use case that requires them.
Ahh, so that's what it is doing. That makes sense now, I knew something was different about this plist. Thanks!
Support for uid
values would be very convenient (or at least an error that points out what is going wrong), unfortunately I'm not in control of the source that creates these plists, It would be much nicer to deal with a "normal" plist.
At some point when I get time I'll implement uid
s but in the mean time more informative errors are coming soon (https://github.com/ebarnard/rust-plist/tree/better-errors).
Do you want to see if #41 fixes your issues.
I will give it a shot this weekend, thanks for the quick turnaround!
On Mon, Jul 22, 2019 at 4:37 AM Ed Barnard notifications@github.com wrote:
Do you want to see if #41 https://github.com/ebarnard/rust-plist/pull/41 fixes your issues.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ebarnard/rust-plist/issues/40?email_source=notifications&email_token=ABRJWJ2IIMAACMP7SXU4R6DQAWEUZA5CNFSM4IE76222YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2PQLWY#issuecomment-513738203, or mute the thread https://github.com/notifications/unsubscribe-auth/ABRJWJ5RSPI7RCCV3BXTTV3QAWEUZANCNFSM4IE7622Q .
I just switched to using the master branch, and after fixing the build errors caused by changes to the types in plist::Value
I can confirm that everything appears to be working as intended. Thanks!
I'll grant this plist is rather unusual, but it does appear to be valid, and passing it through
plutil -convert xml1 out.plist
doesn't error, I haven't tried the XML version as my source provides binary data.plists.zip