Upon taking a look at the translation of PostgreSQL I believe this problem 
should only occur when using the sl_SI locale. The slovenian translator had 
done the following:
msgid "LC_CTYPE:                             %s\n"
msgstr "LC_CTYPE .............................. %s\n"

Whereas the other translators have, AFAICS, all used:
msgid "LC_CTYPE:                             %s\n"
msgstr "LC_CTYPE:                                %s\n"

The same applies to other lines, including LC_COLLATE.

The most painless "solution" to my problem was to edit 
/usr/share/postgresql-common/PgCommon.pm and change the lines 703-707 from:
        if (/^LC_CTYPE.*:\s*(\S+)\s*$/) {
            $lc_ctype = $1;
        } elsif (/^LC_COLLATE.*:\s*(\S+)\s*$/) {
            $lc_collate = $1;
        }

Into:
        if (/^LC_CTYPE.*(:|\.{2,})\s*(\S+)\s*$/) {
            $lc_ctype = $2;
        } elsif (/^LC_COLLATE.*(:|\.{2,})\s*(\S+)\s*$/) {
            $lc_collate = $2;
        }

-- 
Unable to start postgresql with a sl_SI (other non-english?) default system 
locale
https://launchpad.net/bugs/50755

--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to