diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2009-04-08 09:50:48 +0000 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2009-04-08 09:50:48 +0000 |
commit | 1fe5020558b17a796a7c5d8485256abfb1ab8fc7 (patch) | |
tree | 7fc07de7b8dca3b92efe4c919a03befef2010c4c /src/backend/utils/init/miscinit.c | |
parent | baf048d7d2303b358c3a70495c0eb4939a0ab96a (diff) | |
download | postgresql-1fe5020558b17a796a7c5d8485256abfb1ab8fc7.tar.gz postgresql-1fe5020558b17a796a7c5d8485256abfb1ab8fc7.zip |
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.
Diffstat (limited to 'src/backend/utils/init/miscinit.c')
-rw-r--r-- | src/backend/utils/init/miscinit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/init/miscinit.c b/src/backend/utils/init/miscinit.c index 30ecbd3779e..2fcb23628dd 100644 --- a/src/backend/utils/init/miscinit.c +++ b/src/backend/utils/init/miscinit.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.173 2009/03/08 16:07:12 alvherre Exp $ + * $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.174 2009/04/08 09:50:48 heikki Exp $ * *------------------------------------------------------------------------- */ @@ -1242,7 +1242,7 @@ pg_bindtextdomain(const char *domain) get_locale_path(my_exec_path, locale_path); bindtextdomain(domain, locale_path); - pg_bind_textdomain_codeset(domain, GetDatabaseEncoding()); + pg_bind_textdomain_codeset(domain); } #endif } |