Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pldes and friends should have a NSPropertyListGNUstepFormat output option #100

Closed
Artoria2e5 opened this issue Feb 18, 2020 · 4 comments
Closed

Comments

@Artoria2e5
Copy link
Contributor

Artoria2e5 commented Feb 18, 2020

pldes and related utilities currently perform plist dumps by using the description family of properties on the parsed object. Doing so causes information loss for NSValue and NSDate entries, a scenario that NSPropertyListGNUstepFormat was exactly invented for. It is my opinion that if a utility is described as a tool for "format conversion", they should get an option for trying to not lose too much data.

@Artoria2e5
Copy link
Contributor Author

Plser is... the closest to being right since it has a -format argument. The manpage needs an update.

@rfm
Copy link
Contributor

rfm commented Feb 19, 2020

Historically this would be because these utilities pre-date the possibility of storing NSValue and NSDate (these were later additions to the original property lists); the original property list format simply cannot represent those types of data (other than as strings).
I can see the point about wanting more options, but I think your idea of having a plutil program deal with such complexities makes sense, in which case there's probably no point enhancing pldes/plser (people could just use plutil)

@gcasa
Copy link
Member

gcasa commented Apr 2, 2020

I find this property to be misnamed as it was not defined in any version of OPENSTEP or Cocoa. Since it is GNUstep specific it should be GSPropertyListFormat regardless of which utility it is in.

@rfm
Copy link
Contributor

rfm commented Nov 14, 2020

Closing this since the tools already read all formats, the plser tool already has an option to select the write format, and there is now a plutil tool.

@rfm rfm closed this as completed Nov 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants