aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-05-25 01:42:08 +0000
committerBruce Momjian <bruce@momjian.us>2004-05-25 01:42:08 +0000
commit88ca65d76be35f0e297d0838448f4b54599fa9a9 (patch)
tree0ed2f3ecb69fceedb20adeaef9e8b47b04504130 /src
parent228897774c08012ee280e5110856d908a6047697 (diff)
downloadpostgresql-88ca65d76be35f0e297d0838448f4b54599fa9a9.tar.gz
postgresql-88ca65d76be35f0e297d0838448f4b54599fa9a9.zip
Skip settting LC_ALL in the backend.
Diffstat (limited to 'src')
-rw-r--r--src/port/path.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/port/path.c b/src/port/path.c
index af6cbf91bff..c0b579dede0 100644
--- a/src/port/path.c
+++ b/src/port/path.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/path.c,v 1.12 2004/05/25 01:00:30 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/path.c,v 1.13 2004/05/25 01:42:08 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -251,7 +251,10 @@ set_pglocale(const char *argv0, const char *app)
char path[MAXPGPATH];
char my_exec_path[MAXPGPATH];
- setlocale(LC_ALL, "");
+ /* don't set LC_ALL in the backend */
+ if (strcmp(app, "postgres") != 0)
+ setlocale(LC_ALL, "");
+
if (find_my_exec(argv0, my_exec_path) < 0)
return;