diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/scripts/createdb.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/bin/scripts/createdb.c b/src/bin/scripts/createdb.c index e523e58b218..a1482df3d98 100644 --- a/src/bin/scripts/createdb.c +++ b/src/bin/scripts/createdb.c @@ -161,12 +161,10 @@ main(int argc, char *argv[]) if (locale) { - if (lc_ctype) - pg_fatal("only one of --locale and --lc-ctype can be specified"); - if (lc_collate) - pg_fatal("only one of --locale and --lc-collate can be specified"); - lc_ctype = locale; - lc_collate = locale; + if (!lc_ctype) + lc_ctype = locale; + if (!lc_collate) + lc_collate = locale; } if (encoding) |