aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2000-01-12 13:08:55 +0000
committerTatsuo Ishii <ishii@postgresql.org>2000-01-12 13:08:55 +0000
commit267c6c7f060142d9ec2fd39b312e7f7b35cc6f5d (patch)
treeb955b0fe17697829c4f8764851e6aad7aadaca97 /src
parent0b14b0c87eaf59ebb3f2a5d133f252702eacece0 (diff)
downloadpostgresql-267c6c7f060142d9ec2fd39b312e7f7b35cc6f5d.tar.gz
postgresql-267c6c7f060142d9ec2fd39b312e7f7b35cc6f5d.zip
Multi-byte case fix by Oliver Elphick (olly@lfix.co.uk)
Diffstat (limited to 'src')
-rw-r--r--src/bin/scripts/createdb8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bin/scripts/createdb b/src/bin/scripts/createdb
index 14aad8b890e..7a7286c5751 100644
--- a/src/bin/scripts/createdb
+++ b/src/bin/scripts/createdb
@@ -11,7 +11,7 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.4 1999/12/16 20:10:02 momjian Exp $
+# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.5 2000/01/12 13:08:55 ishii Exp $
#
#-------------------------------------------------------------------------
@@ -121,8 +121,10 @@ if [ "$usage" ]; then
fi
-if [ "$MB" ]
-then if [ -z "`pg_encoding '$MB'`" ]
+if [ -n "$MB" ]
+then
+ mbcode=`pg_encoding "$MB"`
+ if [ -z "$mbcode" ]
then
echo "$CMDNAME: \"$MB\" is not a valid encoding name."
exit 1