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

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Don't choke during startup if the environment offers an invalid
Date: 2006-06-03 17:36:10
Message-ID: 20060603173610.6668B9FA326@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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)

Browse pgsql-committers by date

  From Date Subject
Next Message User Pgstudy 2006-06-03 19:25:25 fulldisjunction - fd: Added README file and corrected memory problem
Previous Message Tom Lane 2006-06-03 16:49:47 pgsql: Fix copy-and-pasteo in Russian translation: message complaining