defaults command cannot read plist file having non-ascii filename
| Originator: | yoshiokatsuneo | ||
| Number: | rdar://12516545 | Date Originated: | 17-Oct-2012 11:56 AM |
| Status: | Open | Resolved: | |
| Product: | Mac OS X | Product Version: | 10.8 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary:
defaults command does not work if the specified plist filename contains non-ascii character.
Steps to Reproduce:
~$ defaults read /Applications/TextEdit.app/Contents/Info
{
BuildMachineOSBuild = 12A251;
CFBundleDevelopmentRegion = English;
...
~$ cp -rp /Applications/TextEdit.app /var/tmp/あいうえお
~$ ls /var/tmp/あいうえお/Contents/
Info.plist MacOS/ PkgInfo Resources/ _CodeSignature/ version.plist
~$ defaults read /var/tmp/あいうえお/Contents/Info
2012-10-17 11:51:42.335 defaults[24381:707]
Domain /var/tmp/あいうえお/Contents/Info does not exist
Expected Results:
The contents of plist file specified.
Actual Results:
2012-10-17 11:51:42.335 defaults[24381:707]
Domain /var/tmp/あいうえお/Contents/Info does not exist
Regression:
Notes:
There was not such a problem on previous Mac OS 10.7.
So, I guess it is related to "cfprefsd" introduced on Mac OS 10.8.
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!