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

Lines changed: 5 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy