setlocalversion: fix i18n issue with svn

Closes #4700

Signed-off-by: Frederik Pasch <fpasch@googlemail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Frederik Pasch
2012-01-16 13:54:57 +01:00
committed by Peter Korsgaard
parent 8c7c0ab344
commit 4861aed1f1
2 changed files with 3 additions and 2 deletions

View File

@@ -56,9 +56,9 @@ if hgid=`hg id 2>/dev/null`; then
fi
# Check for svn and a svn repo.
if rev=`LANG=C svn info 2>/dev/null | grep '^Last Changed Rev'`; then
if rev=`LC_ALL=C svn info 2>/dev/null | grep '^Last Changed Rev'`; then
rev=`echo $rev | awk '{print $NF}'`
changes=`LANG=C svn status 2>/dev/null | grep '^[AMD]' | wc -l`
changes=`LC_ALL=C svn status 2>/dev/null | grep '^[AMD]' | wc -l`
# Are there uncommitted changes?
if [ $changes != 0 ]; then