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

Started by Magnus Haganderover 18 years ago1 messagescomitters
Jump to latest
#1Magnus Hagander
magnus@hagander.net

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)