changeset 26117:f33e2783f40d

8055772: get_source.sh : version check assumes English localization Reviewed-by: mduigou, tbell Contributed-by: bitterfoxc@gmail.com
author mduigou
date Thu, 21 Aug 2014 10:22:52 -0700
parents f051bd253364
children dd063cd6c737
files get_source.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/get_source.sh	Thu Aug 21 12:22:42 2014 +0200
+++ b/get_source.sh	Thu Aug 21 10:22:52 2014 -0700
@@ -67,7 +67,7 @@
   error "Could not locate Mercurial command"
 fi
 
-hgversion="`hg --version 2> /dev/null | sed -n -e 's@^Mercurial Distributed SCM (version \([^+]*\).*)\$@\1@p'`"
+hgversion="`LANGUAGE=en hg --version 2> /dev/null | sed -n -e 's@^Mercurial Distributed SCM (version \([^+]*\).*)\$@\1@p'`"
 if [ "x${hgversion}" = "x" ] ; then
   error "Could not determine Mercurial version of $hgwhere"
 fi