Friday 7 June 2013

Re: Systems with invalid locales

Colin Watson [2013-06-04 11:44 +0100]:
> I've always considered such failures a bug, albeit a lowish-priority
> one. Handle setlocale failures, warn if you feel the need, and carry
> on.

For the record, I was wrong on this. postgresql would still install in
that case, but not create a default instance and instead say

------ 8< ----
Error: The locale requested by the environment is invalid.
Error: could not create default cluster. Please create it manually
with

pg_createcluster 9.1 main --start

or a similar command (see 'man pg_createcluster').
------ 8< ----

Robbie and I discussed that again, and found a compromise for this
which works around our ssh and sudo behaviour and should just do the
wrong thing in rare corner cases now, unless of course people actually
rely on the current behaviour of using the user locale:

https://bugs.launchpad.net/ubuntu/+source/postgresql-common/+bug/969462/comments/10

Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)

--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel