From: Joey Hess Date: Sat, 13 Oct 2007 17:22:44 +0000 (-0400) Subject: use LANG=C when parsing command output X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/d1e21e723b6deb2263449195f6e63e5246d2e8b5 use LANG=C when parsing command output Thanks to Gabriel de Perthuis for the bug report. --- diff --git a/mr b/mr index e15019e..c5efb74 100755 --- a/mr +++ b/mr @@ -716,7 +716,7 @@ register = \ cd "$1" \ basedir="$(basename $(pwd))" \ if [ -d .svn ]; then \ - url=$(svn info . | \ + url=$(LANG=C svn info . | \ grep -i ^URL: | cut -d ' ' -f 2) \ if [ -z "$url" ]; then \ error "cannot determine svn url" \ @@ -724,7 +724,7 @@ register = \ echo "Registering svn url: $url" \ mr config "$(pwd)" checkout="svn co $url $basedir" \ elif [ -d .git ]; then \ - url=$(git-config --get remote.origin.url) \ + url=$(LANG=C git-config --get remote.origin.url) \ if [ -z "$url" ]; then \ error "cannot determine git url" \ fi \