diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2009-04-08 13:08:09 +0000 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2009-04-08 13:08:09 +0000 |
commit | 71d119f82aac8075a9cc469315148bd1033c6162 (patch) | |
tree | 578094b6a11db77dcd86bb41e45af32d762c9bac /src | |
parent | 1fe5020558b17a796a7c5d8485256abfb1ab8fc7 (diff) |
Oops, mustn't call textdomain() when compiling without --enable-nls
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/init/postinit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index 44d7dc25247..9b48b7671db 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.189 2009/04/08 09:50:48 heikki Exp $ + * $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.190 2009/04/08 13:08:09 heikki Exp $ * * *------------------------------------------------------------------------- @@ -266,7 +266,9 @@ CheckMyDatabase(const char *name, bool am_superuser) SetConfigOption("lc_ctype", ctype, PGC_INTERNAL, PGC_S_OVERRIDE); /* Use the right encoding in translated messages */ +#ifdef ENABLE_NLS pg_bind_textdomain_codeset(textdomain(NULL)); +#endif /* * Lastly, set up any database-specific configuration variables. |