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

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:

Martin Pitt |
Ubuntu Developer ( | Debian Developer (

ubuntu-devel mailing list
Modify settings or unsubscribe at: