aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/230_cygwin-lang.patch
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2015-01-24 14:36:40 +0000
committerTatsuya Kinoshita <tats@debian.org>2015-01-24 14:37:05 +0000
commit8595cb4102d547388d0d9e699d10a14f8f7aa71c (patch)
treecd27e4b710769000b651b9af4db2704a1cd328dd /debian/patches/230_cygwin-lang.patch
parentUpdate Vcs-Browser (diff)
downloadw3m-8595cb4102d547388d0d9e699d10a14f8f7aa71c.tar.gz
w3m-8595cb4102d547388d0d9e699d10a14f8f7aa71c.zip
Integrate Debian changes into 020_debian.patch (closes: #776112)
(debian/patches/*.patch except 010_upstream.patch are merged)
Diffstat (limited to '')
-rw-r--r--debian/patches/230_cygwin-lang.patch30
1 files changed, 0 insertions, 30 deletions
diff --git a/debian/patches/230_cygwin-lang.patch b/debian/patches/230_cygwin-lang.patch
deleted file mode 100644
index 5a6671e..0000000
--- a/debian/patches/230_cygwin-lang.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-Subject: Do not fail when LANG is not set on Cygwin
-From: Tatsuya Kinoshita <tats@debian.org>, Jarek Czekalski <jarekczek@poczta.onet.pl>
-Bug: https://sourceforge.net/p/w3m/patches/66/
-
- Check whether the value of LC_ALL, LC_CTYPE or LANG is not NULL in
- check_cygwin_console().
-
-diff --git a/terms.c b/terms.c
-index 7a3c987..399d117 100644
---- a/terms.c
-+++ b/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