[Pkg-postgresql-public] Bug#660209: initdb doesn't handle C.UTF-8
daniel.baumann at progress-technologies.com
Sun Sep 4 17:38:40 UTC 2016
On 2016-09-04 18:55, Christoph Berg wrote:
> 1) the initial cluster that is created when "apt-get install
> postgresql" is run doesn't use LANG/LC_ALL, but whatever the system
> locale is (which is defined by /etc/default/locale and
correct, as said this is the source of the problem.
/etc/default/locale is a file created by locales, not locales-all.
please do not take decisions based on an assumption of
/etc/default/locale being there when you can't rely on that
Please consider respecting $LANG or $LC_ALL. Let me know if you would
like to have a patch for this.
> if no system locale is found, pg_createcluster (or rather the code
> in maintscript-functions) falls back to C. This will be changed to
> C.UTF-8 as part of the upcoming fix for #790507.
While I appreciate the changing of the default fallback (and which
would fix my personal issue), it's just switching sides - now everyone
who is running a system with LC_ALL deliberatly set to C (for whatever
legitimit reason) and having no locales installed will end up with
C.UTF-8 instead of C.
Please respect the users choice of locale properly, not by assumptions
of "what the majority of systems have".
More information about the Pkg-postgresql-public