mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-30 15:51:24 +02:00
Fix set_pglocale to properly pass my_exec_path to get_locale_path instead of argv0.
This commit is contained in:
parent
76c50c080b
commit
c826991dd7
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/port/path.c,v 1.13 2004/05/25 01:42:08 momjian Exp $
|
* $PostgreSQL: pgsql/src/port/path.c,v 1.14 2004/05/25 18:18:29 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -258,7 +258,7 @@ set_pglocale(const char *argv0, const char *app)
|
|||||||
if (find_my_exec(argv0, my_exec_path) < 0)
|
if (find_my_exec(argv0, my_exec_path) < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
get_locale_path(argv0, path);
|
get_locale_path(my_exec_path, path);
|
||||||
bindtextdomain(app, path);
|
bindtextdomain(app, path);
|
||||||
textdomain(app);
|
textdomain(app);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user