Package: tmux Version: 1.4-6~bpo60+1 Severity: normal Tags: patch I have empty LC_ALL, and UTF-8 detection does not work for me. Attached patch fixes the problem. I use tmux from backports, but the squeeze version has the same problem with the same solution.
Thank you for your work! -- System Information: Debian Release: 6.0.1 APT prefers stable APT policy: (999, 'stable'), (90, 'unstable'), (50, 'experimental') Architecture: i386 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores) Locale: LANG=, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages tmux depends on: ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib ii libevent-1.4-2 1.4.13-stable-1 An asynchronous event notification ii libncurses5 5.7+20100313-5 shared libraries for terminal hand tmux recommends no packages. tmux suggests no packages. -- no debconf information -- Regards, Sasha. Alexandra N. Kossovsky, software engineer. e-mail: sa...@sanechka.spb.ru
--- tmux.c.saved 2011-04-14 18:32:10.000000000 +0400 +++ tmux.c 2011-04-14 18:34:26.000000000 +0400 @@ -309,8 +309,8 @@ * if not they know that output from UTF-8-capable programs may * be wrong. */ - if ((s = getenv("LC_ALL")) == NULL) { - if ((s = getenv("LC_CTYPE")) == NULL) + if ((s = getenv("LC_ALL")) == NULL || s[0] == '\0') { + if ((s = getenv("LC_CTYPE")) == NULL || s[0] == '\0') s = getenv("LANG"); } if (s != NULL && (strcasestr(s, "UTF-8") != NULL ||