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

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to postgresql-9.1 in Ubuntu.
https://bugs.launchpad.net/bugs/1169369

Title:
  installation error messages for locale settings are not displayed

Status in “postgresql-9.1” package in Ubuntu:
  New

Bug description:
  Ubuntu 12.04.2 LTS
  postgresql-9.1 version 9.1.9-0ubuntu12.04

  Expected:

  if locale settings are not valid, an error message should be shown
  either when failing to initialize the cluster, or failing to install
  the package altogther:

  What actually occurred:

  I installed postgresql-9.1=9.1.9-0ubuntu12.04, which reported no error
  messages, but the cluster had not been initialised and the
  installation had not completed successfully: both /etc/postgresql/9.1/
  and /var/lib/postgresql/9.1/ didn't exist, leaving me unable to
  manually initialise the cluster

  This may be a regression, as I was able to troubleshoot and discover
  the issue by installing postgresql-9.1=9.1.3-2 which *did* report an
  error initializing the cluster due to incorrect locale settings, and
  also did correctly create and populate /etc/postgresql/9.1/*
  configuration files. I was then able to manually initialize the
  cluster and manually generate a server.crt and upgrade to
  9.1.9-0ubuntu12.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postgresql-9.1/+bug/1169369/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to