installation error messages for locale settings are not displayed
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-
This may be a regression, as I was able to troubleshoot and discover the issue by installing postgresql-
For additional reference:
The incorrect locale settings I had:
LANG=en_US en_NZ.UTF- 8 "en_US" "en_US" ON="en_ US"
LANGUAGE=en_US:
LC_CTYPE=
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=
LC_MEASUREMENT=
LC_IDENTIFICATI
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 9.1=9.1. 3-2
$ sudo apt-get install postgresql-
[...]
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