Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit437063b

Browse files
committed
Move setlocale() outside of NLS-only defines.
1 parentd96c374 commit437063b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/port/path.c

Lines changed: 3 additions & 1 deletion
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.15 2004/05/25 20:47:41 momjian Exp $
11+
* $PostgreSQL: pgsql/src/port/path.c,v 1.16 2004/05/26 19:00:31 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -234,11 +234,13 @@ set_pglocale(const char *argv0, const char *app)
234234
#ifdefENABLE_NLS
235235
charpath[MAXPGPATH];
236236
charmy_exec_path[MAXPGPATH];
237+
#endif
237238

238239
/* don't set LC_ALL in the backend */
239240
if (strcmp(app,"postgres")!=0)
240241
setlocale(LC_ALL,"");
241242

243+
#ifdefENABLE_NLS
242244
if (find_my_exec(argv0,my_exec_path)<0)
243245
return;
244246

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp