Tell gettext which codeset to use by calling bind_textdomain_codeset(). We
authorHeikki Linnakangas <heikki@enterprisedb.com>
Wed, 8 Apr 2009 09:50:48 +0000 (09:50 +0000)
committerHeikki Linnakangas <heikki@enterprisedb.com>
Wed, 8 Apr 2009 09:50:48 +0000 (09:50 +0000)
commit463d863c3ae7fd62f2cc659e587c31bd2abed2c6
tree53570dddd2e3ea137d8cc212aa7a07f762e1fbb5
parentb493f708e0859774e290059115bb7fa3b403db5d
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