Skip to content

Commit 88ca65d

Browse files
committed
Skip settting LC_ALL in the backend.
1 parent 2288977 commit 88ca65d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/port/path.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/port/path.c,v 1.12 2004/05/25 01:00:30 momjian Exp $
11+
* $PostgreSQL: pgsql/src/port/path.c,v 1.13 2004/05/25 01:42:08 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -251,7 +251,10 @@ set_pglocale(const char *argv0, const char *app)
251251
char path[MAXPGPATH];
252252
char my_exec_path[MAXPGPATH];
253253

254-
setlocale(LC_ALL, "");
254+
/* don't set LC_ALL in the backend */
255+
if (strcmp(app, "postgres") != 0)
256+
setlocale(LC_ALL, "");
257+
255258
if (find_my_exec(argv0, my_exec_path) < 0)
256259
return;
257260

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy