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)
commitbe488f976f4e644c76a5ac48c2bc33ca67a979c6
tree0eaef711c117afad59ff7ad761e5f8b8175fc153
parent07af68dd44b37caaa511b4939856447be8344aca
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