How to check system default locale for current user?

Hi,

I'm new to Mac. Can anybody tell me how to check system default locale for current user? I can set language/locale from system Preference -> International; but how to get the locale id for what I set? For instance, if I choose Korean without any customization, is my locale ko, ko_KR, ko_KR.UTF-8, or ko_KR.eucKR, which can be found under /usr/share/locale. And any command to check? Does "locale" work? (It seems didn't for me.)

Thanks in advance.

-Lili

Mac OS X (10.3.9)

Posted on Nov 15, 2005 5:19 AM

Reply
2 replies

Nov 15, 2005 7:17 AM in response to applxfsh

Hi Lili,
The command for reading the locale for the GUI is:

defaults read "Apple Global Domain" AppleLocale

The initial lower case letters represent the language, which generally enough for most purposes. The upper case letters after the underscore represent the country. That might matter is you're out in the "colonies". After the period is the character encoding, which I think is very important although I believe that UTF-8 is now the default, as it should be.

On the other hand, I've not heard anyone say that you can change the character encoding for the GUI. Apple was very careful to label that property "AppleLocale" and the possibilities in /usr/share/locale are purely for the UNIX part of the system. I feel confident that the letters before the period mean the same things and they should work the same way for every locale that AppleLocale supports. I simply don't know about the character encodings.
--
Gary
~~~~
Most rock journalism is people who can't write
interviewing people who can't talk for people
who can't read.
-- Frank Zappa

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to check system default locale for current user?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.