Tighten the check in initdb and CREATE DATABASE that the chosen encoding

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: c2d4526495a149d215a9c2a6e0f7c165e78e6b66
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2008-09-23T10:58:03Z
Releases: 8.4.0
Tighten the check in initdb and CREATE DATABASE that the chosen encoding
matches the encoding of the locale. LC_COLLATE is now checked in addition
to LC_CTYPE.

Files

PathChange+/−
doc/src/sgml/charset.sgml modified +5 −5
src/backend/commands/dbcommands.c modified +17 −2
src/bin/initdb/initdb.c modified +59 −45