Explicitly bind gettext() to the UTF8 locale when in use.
authorMagnus Hagander <magnus@hagander.net>
Tue, 27 May 2008 12:24:44 +0000 (12:24 +0000)
committerMagnus Hagander <magnus@hagander.net>
Tue, 27 May 2008 12:24:44 +0000 (12:24 +0000)
commit2e24cfdd83c8d56197c96343a06bd15c531424a1
tree8fa4d62078dc27b80e19b1c99e5b9fc2353c3d1e
parent41a83d26f1f409f64825e5b59869ff80e4f90bc1
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
src/backend/utils/mb/mbutils.c