pgsql: Tell gettext which codeset to use by calling

From: heikki(at)postgresql(dot)org (Heikki Linnakangas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Tell gettext which codeset to use by calling
Date: 2009-04-08 09:50:48
Message-ID: 20090408095048.E628075331D@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Log Message:
-----------
Tell gettext which codeset to use by calling bind_textdomain_codeset(). We
already did that on Windows, but it's needed on other platforms too when
LC_CTYPE=C. With other locales, we enforce (or trust) that the codeset of
the locale matches the server encoding so we don't need to bind it
explicitly. It should do no harm in that case either, but I don't have
full faith in the PG encoding -> OS codeset mapping table yet. Per recent
discussion on pgsql-hackers.

Modified Files:
--------------
pgsql/src/backend/utils/init:
miscinit.c (r1.173 -> r1.174)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/init/miscinit.c?r1=1.173&r2=1.174)
postinit.c (r1.188 -> r1.189)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/init/postinit.c?r1=1.188&r2=1.189)
pgsql/src/backend/utils/mb:
mbutils.c (r1.84 -> r1.85)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/mb/mbutils.c?r1=1.84&r2=1.85)
pgsql/src/include/mb:
pg_wchar.h (r1.88 -> r1.89)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/mb/pg_wchar.h?r1=1.88&r2=1.89)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2009-04-08 10:36:01 Re: Re: [COMMITTERS] pgsql: Explicitly bind gettext to the correct encoding on Windows.
Previous Message Bruce Momjian 2009-04-08 04:05:17 pgsql: Improve tab completion for \ef.

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2009-04-08 10:25:29 Re: More message encoding woes
Previous Message John Lister 2009-04-08 07:12:13 Re: Array types