1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-02 11:44:50 +03:00

Multi-byte case fix by Oliver Elphick (olly@lfix.co.uk)

This commit is contained in:
Tatsuo Ishii 2000-01-12 13:08:55 +00:00
parent 0b14b0c87e
commit 267c6c7f06

View File

@ -11,7 +11,7 @@
# #
# #
# IDENTIFICATION # 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 fi
if [ "$MB" ] if [ -n "$MB" ]
then if [ -z "`pg_encoding '$MB'`" ] then
mbcode=`pg_encoding "$MB"`
if [ -z "$mbcode" ]
then then
echo "$CMDNAME: \"$MB\" is not a valid encoding name." echo "$CMDNAME: \"$MB\" is not a valid encoding name."
exit 1 exit 1