OSDN Git Service

Don't choke during startup if the environment offers an invalid value
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 3 Jun 2006 17:36:10 +0000 (17:36 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 3 Jun 2006 17:36:10 +0000 (17:36 +0000)
commitf2de12e50eb2816c07828bc205ce6601d0bf9d24
tree50155e02538a971b27de45d9473079f043f6d835
parent84e741f4f99038e1fd1f0889d88ea728daca971c
Don't choke during startup if the environment offers an invalid value
for LC_MESSAGES; instead, just press forward, leaving the effective setting
at 'C'.  There is not any very good reason to complain when we are going
to replace the value soon with whatever postgresql.conf says.  This change
should solve the occasionally-reported problem of initdb failing with
'failed to initialize lc_messages'; the current theory is that that is
a reflection of either wrong LANG/LC_MESSAGES or completely broken locale
support.
src/backend/utils/adt/pg_locale.c