]> granicus.if.org Git - postgis/commitdiff
loader/Latin1 regression failure with database SQL_ASCII encoding (#1465) from Greg...
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 8 Feb 2012 00:23:11 +0000 (00:23 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 8 Feb 2012 00:23:11 +0000 (00:23 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9088 b70326c6-7e19-0410-871a-916f4a2858ee

regress/loader/Latin1.select.sql
regress/run_test

index 663dc296f95362e4b3a924c4c8c3f54d54450850..b8140cebab338021774c42bbf2faa1861dbd309d 100644 (file)
@@ -1 +1,2 @@
+SET CLIENT_ENCODING to UTF8;
 SELECT * FROM loadedshp;
index 93f342136d95f65edda93badd77adbf87c776cca..356e1e90d77c4f52dad0379d8925cafc3e3c79bd 100755 (executable)
@@ -559,7 +559,7 @@ if test -z "$db_exists"; then
                # ON_ERROR_STOP is used by psql to return non-0 on an error
                _psql_opts="--no-psqlrc --variable ON_ERROR_STOP=true"
 
-               createdb --template=template0 --lc-collate="C" "${DB}" > ${TMPDIR}/regress_log
+               createdb --encoding=UTF-8 --template=template0 --lc-collate="C" "${DB}" > ${TMPDIR}/regress_log
                createlang plpgsql "${DB}" >> ${TMPDIR}/regress_log
 
                # Count database objects before installing anything