[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Wrong language choosen on w32
From: |
Eli Zaretskii |
Subject: |
Re: Wrong language choosen on w32 |
Date: |
Thu, 21 Dec 2006 22:56:23 +0200 |
> Date: Thu, 21 Dec 2006 16:55:54 +0100
> From: Lennart Borgman <address@hidden>
> Cc: address@hidden
>
> 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?