aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-05-26 19:00:31 +0000
committerBruce Momjian <bruce@momjian.us>2004-05-26 19:00:31 +0000
commit437063bdc42f0232519cf1a14c1b84c6d85873bb (patch)
treeb0333d275551232718f18c5edffac5e27b91abae
parentd96c374648974d29a33a0c7033a05adb6ae114aa (diff)
downloadpostgresql-437063bdc42f0232519cf1a14c1b84c6d85873bb.tar.gz
postgresql-437063bdc42f0232519cf1a14c1b84c6d85873bb.zip
Move setlocale() outside of NLS-only defines.
-rw-r--r--src/port/path.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/port/path.c b/src/port/path.c
index fda684c4528..edd4371bc9d 100644
--- a/src/port/path.c
+++ b/src/port/path.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/path.c,v 1.15 2004/05/25 20:47:41 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/path.c,v 1.16 2004/05/26 19:00:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -234,11 +234,13 @@ set_pglocale(const char *argv0, const char *app)
#ifdef ENABLE_NLS
char path[MAXPGPATH];
char my_exec_path[MAXPGPATH];
+#endif
/* don't set LC_ALL in the backend */
if (strcmp(app, "postgres") != 0)
setlocale(LC_ALL, "");
+#ifdef ENABLE_NLS
if (find_my_exec(argv0, my_exec_path) < 0)
return;