Your message dated Sat, 17 Sep 2011 15:41:25 +0200
with message-id <[email protected]>
and subject line Re: Bug#622772: tmux: wrong UTF-8 detection
has caused the Debian Bug report #622772,
regarding tmux: wrong UTF-8 detection
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
622772: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=622772
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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: [email protected]
--- 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 ||

--- End Message ---
--- Begin Message ---
This was caused by a user configuration error, so I'm closing this report.

Thanks,
-- 
Romain Francoise <[email protected]>
http://people.debian.org/~rfrancoise/


--- End Message ---

Reply via email to