diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2009-03-09 00:01:32 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2009-03-09 00:01:32 +0000 |
commit | e43fd89762a5a894ea04f4fe74e05f95a1488664 (patch) | |
tree | 18be430799f560f8878f83b18bfdfe07c3e3dc40 /src/backend/utils/mb/mbutils.c | |
parent | ace2b067d5a3d3c987960b830c325c6299c40532 (diff) | |
download | postgresql-e43fd89762a5a894ea04f4fe74e05f95a1488664.tar.gz postgresql-e43fd89762a5a894ea04f4fe74e05f95a1488664.zip |
Revert pg_bind_textdomain_codeset to a existant-but-empty function when
ENABLE_NLS is not defined, for better compatibility of the backend with
modules compiled the other way.
Per note from Tom after my previous commit.
Diffstat (limited to 'src/backend/utils/mb/mbutils.c')
-rw-r--r-- | src/backend/utils/mb/mbutils.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/backend/utils/mb/mbutils.c b/src/backend/utils/mb/mbutils.c index 3a93bbd9a30..f54b7486cbf 100644 --- a/src/backend/utils/mb/mbutils.c +++ b/src/backend/utils/mb/mbutils.c @@ -4,7 +4,7 @@ * (currently mule internal code (mic) is used) * Tatsuo Ishii * - * $PostgreSQL: pgsql/src/backend/utils/mb/mbutils.c,v 1.81 2009/03/08 18:10:16 alvherre Exp $ + * $PostgreSQL: pgsql/src/backend/utils/mb/mbutils.c,v 1.82 2009/03/09 00:01:32 alvherre Exp $ */ #include "postgres.h" @@ -900,11 +900,10 @@ SetDatabaseEncoding(int encoding) * On Windows, we need to explicitly bind gettext to the correct * encoding, because gettext() tends to get confused. */ -#ifdef ENABLE_NLS void pg_bind_textdomain_codeset(const char *domainname, int encoding) { -#ifdef WIN32 +#if defined(ENABLE_NLS) && defined(WIN32) int i; for (i = 0; i < lengthof(codeset_map_array); i++) @@ -919,7 +918,6 @@ pg_bind_textdomain_codeset(const char *domainname, int encoding) } #endif } -#endif void SetDefaultClientEncoding(void) |