diff options
Diffstat (limited to 'src/test/mb/mbregress.sh')
-rwxr-xr-x | src/test/mb/mbregress.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/test/mb/mbregress.sh b/src/test/mb/mbregress.sh index 03e590c9fc6..1efa0326c7f 100755 --- a/src/test/mb/mbregress.sh +++ b/src/test/mb/mbregress.sh @@ -18,7 +18,11 @@ dropdb --if-exists utf8 createdb -T template0 -l C -E UTF8 utf8 || exit 1 PSQL="psql -n -e -q" -tests="euc_jp sjis euc_kr euc_cn euc_tw big5 utf8 mule_internal" + +# in the test list, client-only encodings must follow the server encoding +# they're to be tested with; see hard-coded cases below +tests="euc_jp sjis euc_kr euc_cn euc_tw big5 utf8 gb18030 mule_internal" + EXITCODE=0 unset PGCLIENTENCODING @@ -36,6 +40,11 @@ do export PGCLIENTENCODING $PSQL euc_tw < sql/big5.sql > results/big5.out 2>&1 unset PGCLIENTENCODING + elif [ $i = gb18030 ];then + PGCLIENTENCODING=GB18030 + export PGCLIENTENCODING + $PSQL utf8 < sql/gb18030.sql > results/gb18030.out 2>&1 + unset PGCLIENTENCODING else dropdb $i >/dev/null 2>&1 createdb -T template0 -l C -E `echo $i | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` $i >/dev/null |