defaults only writes int32
Originator: | tom.burgin | ||
Number: | rdar://30923125 | Date Originated: | 03/08/17 |
Status: | Open | Resolved: | |
Product: | Product Version: | ||
Classification: | Reproducible: |
Summary: When using the -int flag and trying to store an integer larger than a signed 32 int, defaults saves int32 max ([-]2147483647) instead. Steps to Reproduce: bur@bur-macpro:~|⇒ defaults write /tmp/test.plist large -int 9223372036854775807 bur@bur-macpro:~|⇒ defaults read /tmp/test.plist large 2147483647 bur@bur-macpro:~|⇒ defaults write /tmp/test.plist large -int -9223372036854775807 bur@bur-macpro:~|⇒ defaults read /tmp/test.plist large -2147483648 Expected Results: defaults should handle 64 bit ints Version: 10.12.3 (16D32)
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!