aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarek Czekalski <jarekczek@poczta.onet.pl>2013-10-14 00:17:35 +0000
committerTatsuya Kinoshita <tats@debian.org>2013-10-14 00:17:35 +0000
commit01d053099553f404b57f252111797762abc4b527 (patch)
treef9f9f021f79bec1ff687d6ccec8bc888b5c8d297
parentDo not fail when LANG is not set (diff)
downloadw3m-01d053099553f404b57f252111797762abc4b527.tar.gz
w3m-01d053099553f404b57f252111797762abc4b527.zip
Fix paren in check_cygwin_console()
Bug: https://sourceforge.net/p/w3m/patches/66/
Diffstat (limited to '')
-rw-r--r--terms.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/terms.c b/terms.c
index 4bb46c0..399d117 100644
--- a/terms.c
+++ b/terms.c
@@ -237,9 +237,9 @@ check_cygwin_console(void)
isLocalConsole = 1;
}
}
- if ((ctype = getenv("LC_ALL") ||
- ctype = getenv("LC_CTYPE") ||
- ctype = getenv("LANG")) && strncmp(ctype, "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