From: Paul Ramsey Date: Sun, 15 Nov 2009 19:32:07 +0000 (+0000) Subject: Add locale handling by setting to 'C' (#303) X-Git-Tag: 1.5.0b1~245 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c0b4741b60331779ad2ca783a87270b9bf9b87e;p=postgis Add locale handling by setting to 'C' (#303) git-svn-id: http://svn.osgeo.org/postgis/trunk@4815 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/run_test b/regress/run_test index 4b9932b13..a9e2ed6ee 100755 --- a/regress/run_test +++ b/regress/run_test @@ -18,6 +18,11 @@ PGSQL2SHP=../loader/pgsql2shp # ################################################### +# Set the locale to "C" so error messages match +# Save original locale to set back +ORIG_LC_ALL=$LC_ALL +export LC_ALL=C + if [ -n "$USE_VERSION" ]; then if [ "$USE_VERSION" -gt 74 ]; then PGOPTIONS="${PGOPTIONS} -c lc_messages=C" @@ -507,3 +512,5 @@ else : echo "Drop database ${DB} manually" fi +# Set the locale back to the original +export LC_ALL=$ORIG_LC_ALL