mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-02 03:41:18 +02:00
Move setlocale() outside of NLS-only defines.
This commit is contained in:
parent
d96c374648
commit
437063bdc4
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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
|
#ifdef ENABLE_NLS
|
||||||
char path[MAXPGPATH];
|
char path[MAXPGPATH];
|
||||||
char my_exec_path[MAXPGPATH];
|
char my_exec_path[MAXPGPATH];
|
||||||
|
#endif
|
||||||
|
|
||||||
/* don't set LC_ALL in the backend */
|
/* don't set LC_ALL in the backend */
|
||||||
if (strcmp(app, "postgres") != 0)
|
if (strcmp(app, "postgres") != 0)
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
|
|
||||||
|
#ifdef ENABLE_NLS
|
||||||
if (find_my_exec(argv0, my_exec_path) < 0)
|
if (find_my_exec(argv0, my_exec_path) < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user