From 31bd3af10535ed27b04205859dcc8dad1c1a1a7e Mon Sep 17 00:00:00 2001 From: Leif Middelschulte Date: Tue, 15 Jan 2013 15:57:58 +0000 Subject: [PATCH] Prepend svnversion command with LC_ALL=C so the subsequent grep works with non-english locales too. This patch was brought to you by: sed -i'' 's/svnversion/LC_ALL=C svnversion/' configure.ac Anybody who has the entire trunk and branches around is welcome to apply an analogue patches to it. SVN revision: 82822 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a0f5607603..ff82e287e8 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ m4_define([v_maj], [1]) m4_define([v_min], [7]) m4_define([v_mic], [99]) -m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v '\(export\|Unversioned directory\)' || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n'])) +m4_define([v_rev], m4_esyscmd([(LC_ALL=C svnversion "${SVN_REPO_PATH:-.}" | grep -v '\(export\|Unversioned directory\)' || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n'])) m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))]) #### FIXME: i am sure that we can do some m4 to automagically do the stuff below for release and snapshots