Posts

Post not yet marked as solved
5 Replies
1.1k Views
The following command is executed in the application we are developing.osLocale = `sudo -u $ USER defaults read -g AppleLocale`In many Mac environments, locale information can be obtained, but in some Mac (10.13, 10.14) environments, "does not exist" is returned and locale information cannot be obtained.I found that the AppleLocale key doesn't exist in .GlobalPreferences.plist in the environment.Why doesn't the AppleLocale key exist in the .GlobalPreferences.plist file?Is the environment where the AppleLocale key doesn't exist in the .GlobalPreferences.plist file normal?Is there a way to set the AppleLocale key in the .GlobalPreferences.plist file?
Posted
by noguchi.
Last updated
.