Closed dnicolson closed 4 years ago
Please check b7c802f1b7cdf8a271b148d4375c4309aefc5e0d. The input and output size will probably still differ, but it now handles 0.0 and the others cases like the official plutil tool.
This works correctly now and the output size is the same. The attached plist had some whitespace inconsistencies, running it through plutil
twice and then plist_test
produced the same file size.
Values of type
real
can lose precision if they contain more than 6 decimal places. After using theplist_test
binary, the value8263.0072447640268
becomes8263.007245
and the value0.0
becomes0.000000
.The following commands:
Give the following output:
precision-real.plist.zip