mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
Append major version number and for libraries soname major version number
to the gettext domain name, to simplify parallel installations. Also, rename set_text_domain() to pg_bindtextdomain(), because that is what it does.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/port/exec.c,v 1.60 2008/04/16 22:16:00 adunstan Exp $
|
||||
* $PostgreSQL: pgsql/src/port/exec.c,v 1.61 2008/12/11 07:34:09 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -630,7 +630,7 @@ set_pglocale_pgservice(const char *argv0, const char *app)
|
||||
* PGLOCALEDIR */
|
||||
|
||||
/* don't set LC_ALL in the backend */
|
||||
if (strcmp(app, "postgres") != 0)
|
||||
if (strcmp(app, PG_TEXTDOMAIN("postgres")) != 0)
|
||||
setlocale(LC_ALL, "");
|
||||
|
||||
if (find_my_exec(argv0, my_exec_path) < 0)
|
||||
|
Reference in New Issue
Block a user