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

Lists: pgsql-committers
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:46
Message-ID: 20080527122446.54CAF754C54@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

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

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
pgsql/src/backend/utils/mb:
mbutils.c (r1.69 -> r1.69.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/mb/mbutils.c?r1=1.69&r2=1.69.2.1)