Desciption of the issue is given at link. It seems that it is a PostgreSQL bug only. To resolve this issue, there seems to be only a single workaround, which is to create a list of locale (map) with key as <Language>_<Country>.<CodePage>
and value as <Language>, <Country>
.
For example:
English_United States.1252 = English, United States
...
Since value of parameter --locale
is accepted in the format of <Language>, <Country>
whereas output of command SHOW LC_COLLATE
is in the format of <Language>_<Country>.<CodePage>
. So, during an ugrade I will get the value of lc_collate cmd and get the corresponding value from the list and provide it during PostgreSQL 9.5 installation.
How do I convert <Language>_<Country>.<CodePage>
to appropriate format for successful installation ?