Fix paren in check_cygwin_console()

Bug: https://sourceforge.net/p/w3m/patches/66/
This commit is contained in:
Jarek Czekalski
2013-10-14 09:17:35 +09:00
committed by Tatsuya Kinoshita
parent f9ad57b0d3
commit 01d0530995

View File

@@ -237,9 +237,9 @@ check_cygwin_console(void)
isLocalConsole = 1; isLocalConsole = 1;
} }
} }
if ((ctype = getenv("LC_ALL") || if (((ctype = getenv("LC_ALL")) ||
ctype = getenv("LC_CTYPE") || (ctype = getenv("LC_CTYPE")) ||
ctype = getenv("LANG")) && strncmp(ctype, "ja", 2) == 0) { (ctype = getenv("LANG"))) && strncmp(ctype, "ja", 2) == 0) {
isWinConsole = TERM_CYGWIN_RESERVE_IME; isWinConsole = TERM_CYGWIN_RESERVE_IME;
} }
#ifdef SUPPORT_WIN9X_CONSOLE_MBCS #ifdef SUPPORT_WIN9X_CONSOLE_MBCS