Thread: pgsql: Don't choke during startup if the environment offers an invalid

pgsql: Don't choke during startup if the environment offers an invalid

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        pg_locale.c (r1.35 -> r1.36)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/pg_locale.c.diff?r1=1.35&r2=1.36)