mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Oops, mustn't call textdomain() when compiling without --enable-nls
This commit is contained in:
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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);
|
SetConfigOption("lc_ctype", ctype, PGC_INTERNAL, PGC_S_OVERRIDE);
|
||||||
|
|
||||||
/* Use the right encoding in translated messages */
|
/* Use the right encoding in translated messages */
|
||||||
|
#ifdef ENABLE_NLS
|
||||||
pg_bind_textdomain_codeset(textdomain(NULL));
|
pg_bind_textdomain_codeset(textdomain(NULL));
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Lastly, set up any database-specific configuration variables.
|
* Lastly, set up any database-specific configuration variables.
|
||||||
|
Reference in New Issue
Block a user