]> granicus.if.org Git - postgresql/commit
Tell gettext which codeset to use by calling bind_textdomain_codeset(). We
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 8 Apr 2009 09:50:48 +0000 (09:50 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 8 Apr 2009 09:50:48 +0000 (09:50 +0000)
commit1fe5020558b17a796a7c5d8485256abfb1ab8fc7
tree7fc07de7b8dca3b92efe4c919a03befef2010c4c
parentbaf048d7d2303b358c3a70495c0eb4939a0ab96a
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