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

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

From
mha@postgresql.org (Magnus Hagander)
Date:
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_2_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/mb:
        mbutils.c (r1.59 -> r1.59.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/mb/mbutils.c?r1=1.59&r2=1.59.2.1)