installation error messages for locale settings are not displayed

Bug #1169369 reported by Jeremy Olliver
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
postgresql-9.1 (Ubuntu)
New
Undecided
Unassigned

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

Tags: locale
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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.