Skip to content

Commit c826991

Browse files
committed
Fix set_pglocale to properly pass my_exec_path to get_locale_path instead of argv0.
1 parent 76c50c0 commit c826991

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/port/path.c

+2-2
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.13 2004/05/25 01:42:08 momjian Exp $
11+
* $PostgreSQL: pgsql/src/port/path.c,v 1.14 2004/05/25 18:18:29 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -258,7 +258,7 @@ set_pglocale(const char *argv0, const char *app)
258258
if (find_my_exec(argv0, my_exec_path) < 0)
259259
return;
260260

261-
get_locale_path(argv0, path);
261+
get_locale_path(my_exec_path, path);
262262
bindtextdomain(app, path);
263263
textdomain(app);
264264
#endif

0 commit comments

Comments
 (0)