Comment 1 for bug 1169369

Revision history for this message
Jeremy Olliver (jeremy-olliver) wrote :

For additional reference:
The incorrect locale settings I had:

LANG=en_US
LANGUAGE=en_US:
LC_CTYPE=en_NZ.UTF-8
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=

The error message as correctly reported in version 9.1.3-2:

$ sudo apt-get install postgresql-client-9.1=9.1.3-2
$ sudo apt-get install postgresql-9.1=9.1.3-2
[...]
initdb: encoding mismatch
The encoding you selected (UTF8) and the encoding that the
selected locale uses (LATIN1) do not match
[...]

As mentioned above, the bug being reported is the lack of this error message in package version 9.1.9-0ubuntu12.04