From 218b4e8dd86016f82c3a71dec9d339240e866505 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 11 Dec 2008 07:34:09 +0000 Subject: 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. --- src/port/exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/port/exec.c') diff --git a/src/port/exec.c b/src/port/exec.c index ce0a7017947..6b917857ac6 100644 --- a/src/port/exec.c +++ b/src/port/exec.c @@ -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) -- cgit v1.2.3