> Date: Thu, 21 Dec 2006 16:55:54 +0100
> From: Lennart Borgman <[EMAIL PROTECTED]>
> Cc: [email protected]
> 
> Anyway, Emacs is choosing language with the wrong API.

Here's what Emacs does to find out the language:

  /* Get default locale info and use it for LANG.  */
  if (GetLocaleInfo (LOCALE_USER_DEFAULT,
                     LOCALE_SABBREVLANGNAME | LOCALE_USE_CP_ACP,
                     locale_name, sizeof (locale_name)))
    {
      for (i = 0; i < N_ENV_VARS; i++)
        {
          if (strcmp (env_vars[i].name, "LANG") == 0)
            {
              env_vars[i].def_value = locale_name;
              break;
            }
        }
    }

Can you tell why you think this is a wrong API, and what is the
_right_ API?


_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to