Prechádzať zdrojové kódy

HADOOP-3819. Unset LANG and LC_CTYPE in saveVersion.sh to make it
compatible with non-English locales. Contributed by Rong-En Fan.


git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@681208 13f79535-47bb-0310-9956-ffa450edef68

Christopher Douglas 17 rokov pred
rodič
commit
3b27cf2a7f
2 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  1. 3 0
      CHANGES.txt
  2. 2 0
      src/saveVersion.sh

+ 3 - 0
CHANGES.txt

@@ -184,6 +184,9 @@ Trunk (unreleased changes)
     Trash made similar to the behaviour from dfs shell.
     (Pete Wyckoff via dhruba)
 
+    HADOOP-3819. Unset LANG and LC_CTYPE in saveVersion.sh to make it
+    compatible with non-English locales. (Rong-En Fan via cdouglas)
+
 Release 0.18.0 - Unreleased
 
   INCOMPATIBLE CHANGES

+ 2 - 0
src/saveVersion.sh

@@ -18,6 +18,8 @@
 
 # This file is used to generate the BuildStamp.java class that
 # records the user, url, revision and timestamp.
+unset LANG
+unset LC_CTYPE
 version=$1
 revision=`svn info | sed -n -e 's/Last Changed Rev: \(.*\)/\1/p'`
 url=`svn info | sed -n -e 's/URL: \(.*\)/\1/p'`