>>>>> On Wed, 16 Mar 2005 17:39:37 +0900, YAMAMOTO Mitsuharu <[EMAIL 
>>>>> PROTECTED]> said:

> I also added a function that reads arbitrary application preference
> value and converts it a Lisp object.  For example, evaluation of
> (mac-get-preference "AppleLanguages") results in an array ["ja" "en"
> "fr" "de" ...] of strings in my environment.  Maybe this can be used
> for setting up the default language environment at startup time.

I've made some changes to set-locale-environment so that some system
language settings can be reflected on Mac OS.  They are consulted in
the following order at startup time:

  1. Environment variables LC_ALL, LC_CTYPE and LANG as in other
     systems.

  2. Preference AppleLocale that is set by default on Mac OS X 10.3.

  3. Preference AppleLanguages that is set by default on Mac OS X
  10.x.

  4. Variable mac-system-locale that is derived from the system
     language and region codes.  This variable is available on all
     supported Mac OS versions including Mac OS Classic.

Also, the coding system derived from the system script code is used as
default coding systems on Mac OS Classic.

                                     YAMAMOTO Mitsuharu
                                [EMAIL PROTECTED]


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to