[vte/vte-0-34] prompt: Set LC_ALL instead of LANG



commit 9c9f1451f37864f18e711c348f6335a22e7c4c4d
Author: Christian Persch <chpe gnome org>
Date:   Thu Oct 3 14:34:49 2013 +0200

    prompt: Set LC_ALL instead of LANG
    
    LC_ALL and LC_* override LANG, so if the user has any of them set,
    __vte_urlencode would give the wrong output.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=709354

 src/vte.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.sh b/src/vte.sh
index bd84e08..bbd84e3 100644
--- a/src/vte.sh
+++ b/src/vte.sh
@@ -27,7 +27,7 @@
 __vte_urlencode() (
   # This is important to make sure string manipulation is handled
   # byte-by-byte.
-  LANG=C
+  LC_ALL=C
   str="$1"
   while [ -n "$str" ]; do
     safe="${str%%[!a-zA-Z0-9/:_\.\-\!\'\(\)~]*}"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]