Merge branch 'bug/cygwin-lang'
This commit is contained in:
5
terms.c
5
terms.c
@@ -222,6 +222,7 @@ static void
|
||||
check_cygwin_console(void)
|
||||
{
|
||||
char *term = getenv("TERM");
|
||||
char *ctype;
|
||||
HANDLE hWnd;
|
||||
|
||||
if (term == NULL)
|
||||
@@ -236,7 +237,9 @@ check_cygwin_console(void)
|
||||
isLocalConsole = 1;
|
||||
}
|
||||
}
|
||||
if (strncmp(getenv("LANG"), "ja", 2) == 0) {
|
||||
if ((ctype = getenv("LC_ALL") ||
|
||||
ctype = getenv("LC_CTYPE") ||
|
||||
ctype = getenv("LANG")) && strncmp(ctype, "ja", 2) == 0) {
|
||||
isWinConsole = TERM_CYGWIN_RESERVE_IME;
|
||||
}
|
||||
#ifdef SUPPORT_WIN9X_CONSOLE_MBCS
|
||||
|
Reference in New Issue
Block a user