Tell gettext which codeset to use by calling bind_textdomain_codeset(). We
commitaddabead4a235d932fa0f61e6faa8cfa1873e79f
authorheikki <heikki>
Wed, 8 Apr 2009 09:50:48 +0000 (8 09:50 +0000)
committerheikki <heikki>
Wed, 8 Apr 2009 09:50:48 +0000 (8 09:50 +0000)
treea34595185adfef7d57c680e57c9e8774b68b44a5
parent557e585dd671a8250234b5bfb518868b7086fe49
Tell gettext which codeset to use by calling bind_textdomain_codeset(). We
already did that on Windows, but it's needed on other platforms too when
LC_CTYPE=C. With other locales, we enforce (or trust) that the codeset of
the locale matches the server encoding so we don't need to bind it
explicitly. It should do no harm in that case either, but I don't have
full faith in the PG encoding -> OS codeset mapping table yet. Per recent
discussion on pgsql-hackers.
src/backend/utils/init/miscinit.c
src/backend/utils/init/postinit.c
src/backend/utils/mb/mbutils.c
src/include/mb/pg_wchar.h