Explicitly bind gettext() to the UTF8 locale when in use.
authorMagnus Hagander <magnus@hagander.net>
Tue, 27 May 2008 12:24:46 +0000 (12:24 +0000)
committerMagnus Hagander <magnus@hagander.net>
Tue, 27 May 2008 12:24:46 +0000 (12:24 +0000)
commitfc46263c85da2b790e92ff2b47c5427252739bde
treefb4037c974ab9324c5e059d61f08a1aaea7fe637
parent14351d12217da3fd437ad562c7b57c38124b9128
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