8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2288977 commit 88ca65dCopy full SHA for 88ca65d
src/port/path.c
@@ -8,7 +8,7 @@
8
*
9
10
* IDENTIFICATION
11
- * $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 $
12
13
*-------------------------------------------------------------------------
14
*/
@@ -251,7 +251,10 @@ set_pglocale(const char *argv0, const char *app)
251
char path[MAXPGPATH];
252
char my_exec_path[MAXPGPATH];
253
254
- setlocale(LC_ALL, "");
+ /* don't set LC_ALL in the backend */
255
+ if (strcmp(app, "postgres") != 0)
256
+ setlocale(LC_ALL, "");
257
+
258
if (find_my_exec(argv0, my_exec_path) < 0)
259
return;
260
0 commit comments