initdb ignores invalid locale names

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: initdb ignores invalid locale names
Date: 2006-09-22 18:15:32
Message-ID: 200609222015.33793.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

When initdb is given an invalid (possibly mistyped) locale name, it just
prints a warning and proceeds with the default locale from the
environment. Someone already wondered about this before:

/* should we exit here? */
if (!ret)
fprintf(stderr, _("%s: invalid locale name \"%s\"\n"), progname,
locale);

return ret;

I obviously think we should. Why shouldn't we?

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message AgentM 2006-09-22 18:20:09 Re: advisory locks and permissions
Previous Message Bruce Momjian 2006-09-22 18:09:35 Re: Release Notes: Major Changes in 8.2