initdb ignores invalid locale names - Mailing list 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/


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Release Notes: Major Changes in 8.2
Next
From: AgentM
Date:
Subject: Re: advisory locks and permissions