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

Lines changed: 2 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.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)
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