{
echo "Creating spatial db ${DB} "
- createdb --template=template0 --lc-collate="C" "${DB}" > ${PGIS_REG_TMPDIR}/regress_log 2>&1
+ createdb --encoding=UTF-8 --template=template0 --lc-collate="C" "${DB}" > ${PGIS_REG_TMPDIR}/regress_log 2>&1
if [ $? -gt 0 ]; then # {
fail "createdb failed" "${PGIS_REG_TMPDIR}/regress_log"
exit 1
my ($cmd, $rv);
print "Creating database '$DB' \n";
- $cmd = "createdb --template=template0 --lc-collate=C $DB > $REGRESS_LOG";
+ $cmd = "createdb --encoding=UTF-8 --template=template0 --lc-collate=C $DB > $REGRESS_LOG";
$rv = system($cmd);
$cmd = "createlang plpgsql $DB >> $REGRESS_LOG 2>&1";
$rv = system($cmd);