pgsql: Explicitly bind gettext() to the UTF8 locale when in use.

From: mha(at)postgresql(dot)org (Magnus Hagander)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Explicitly bind gettext() to the UTF8 locale when in use.
Date: 2008-05-27 12:24:42
Message-ID: 20080527122442.A996C754C54@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Log Message:
-----------
Explicitly bind gettext() to the UTF8 locale when in use.
This is required on Windows due to the special locale
handling for UTF8 that doesn't change the full environment.

Fixes crash with translated error messages per bugs 4180
and 4196.

Tom Lane

Modified Files:
--------------
pgsql/src/backend/utils/mb:
mbutils.c (r1.70 -> r1.71)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/mb/mbutils.c?r1=1.70&r2=1.71)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2008-05-27 12:24:44 pgsql: Explicitly bind gettext() to the UTF8 locale when in use.
Previous Message Tom Lane 2008-05-27 00:13:09 pgsql: Alter the xxx_pattern_ops opclasses to use the regular equality

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-05-27 13:44:02 Re: keyword list/ecpg
Previous Message Michael Meskes 2008-05-27 10:17:31 Re: WITH RECURSIVE patches V0.1 TODO items