]> granicus.if.org Git - postgis/commitdiff
Add locale handling by setting to 'C' (#303)
authorPaul Ramsey <pramsey@cleverelephant.ca>
Sun, 15 Nov 2009 19:32:07 +0000 (19:32 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Sun, 15 Nov 2009 19:32:07 +0000 (19:32 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4815 b70326c6-7e19-0410-871a-916f4a2858ee

regress/run_test

index 4b9932b13cab152ceade38d8e98355b2420a04db..a9e2ed6eef7fbbb287a355638ef03d5f5f13ccaa 100755 (executable)
@@ -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