Oops, mustn't call textdomain() when compiling without --enable-nls
authorHeikki Linnakangas <heikki@enterprisedb.com>
Wed, 8 Apr 2009 13:08:09 +0000 (13:08 +0000)
committerHeikki Linnakangas <heikki@enterprisedb.com>
Wed, 8 Apr 2009 13:08:09 +0000 (13:08 +0000)
src/backend/utils/init/postinit.c

index a73833a1e632fc87c51191fd7f7aa9c39a286da0..b1251f945fd11101cb72a474068ef031bdeacda4 100644 (file)
@@ -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.