Revision: 2618
          http://tmux.svn.sourceforge.net/tmux/?rev=2618&view=rev
Author:   tcunha
Date:     2011-10-23 15:04:30 +0000 (Sun, 23 Oct 2011)
Log Message:
-----------
Sync OpenBSD patchset 966:

Ignore LC_ALL and LC_CTYPE if they are empty as well as unset.

Modified Paths:
--------------
    trunk/tmux.c

Modified: trunk/tmux.c
===================================================================
--- trunk/tmux.c        2011-10-23 15:03:50 UTC (rev 2617)
+++ trunk/tmux.c        2011-10-23 15:04:30 UTC (rev 2618)
@@ -295,8 +295,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') {
+                       if ((s = getenv("LC_CTYPE")) == NULL || *s == '\0')
                                s = getenv("LANG");
                }
                if (s != NULL && (strcasestr(s, "UTF-8") != NULL ||

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to