Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 267c6c7

Browse files
committed
Multi-byte case fix by Oliver Elphick (olly@lfix.co.uk)
1 parent 0b14b0c commit 267c6c7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/bin/scripts/createdb

+5-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
#
1313
# IDENTIFICATION
14-
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.4 1999/12/16 20:10:02 momjian Exp $
14+
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.5 2000/01/12 13:08:55 ishii Exp $
1515
#
1616
#-------------------------------------------------------------------------
1717

@@ -121,8 +121,10 @@ if [ "$usage" ]; then
121121
fi
122122

123123

124-
if [ "$MB" ]
125-
then if [ -z "`pg_encoding '$MB'`" ]
124+
if [ -n "$MB" ]
125+
then
126+
mbcode=`pg_encoding "$MB"`
127+
if [ -z "$mbcode" ]
126128
then
127129
echo "$CMDNAME: \"$MB\" is not a valid encoding name."
128130
exit 1

0 commit comments

Comments
 (0)