Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 20014632E49 for ; Sun, 15 Feb 2009 10:08:57 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 56769-05 for ; Sun, 15 Feb 2009 10:08:54 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from svr2.hagander.net (svr2.hagander.net [88.198.128.226]) by mail.postgresql.org (Postfix) with ESMTP id 5F60B632DF9 for ; Sun, 15 Feb 2009 10:08:54 -0400 (AST) Received: from dynamic.hagander.net ([127.0.0.1]) (encrypted and authenticated) by svr2.hagander.net (Postfix) with ESMTP id E197ADCCF68; Sun, 15 Feb 2009 15:08:51 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mha-laptop.hagander.net (Postfix) with ESMTP id 5A346170249; Sun, 15 Feb 2009 15:08:51 +0100 (CET) Message-ID: <499821F3.7050004@hagander.net> Date: Sun, 15 Feb 2009 15:08:51 +0100 From: Magnus Hagander User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Tom Lane CC: pgsql-hackers@postgreSQL.org Subject: Re: [COMMITTERS] pgsql: Explicitly bind gettext to the correct encoding on Windows. References: <20090122100948.89F977559ED@cvs.postgresql.org> <20643.1232666867@sss.pgh.pa.us> In-Reply-To: <20643.1232666867@sss.pgh.pa.us> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200902/814 X-Sequence-Number: 134104 Tom Lane wrote: > mha@postgresql.org (Magnus Hagander) writes: >> Explicitly bind gettext to the correct encoding on Windows. > > I have a couple of objections to this patch. First, what happens if > it fails to find a matching table entry? (The existing answer is > "nothing", but that doesn't seem right.) Second and more critical, > it adds still another data structure that has to be maintained when > the list of encodings changes, and it doesn't even live in the same > file as any existing encoding-information table. > > What makes more sense to me is to add a table to encnames.c that > provides the gettext name of every encoding that we support. Do you mean a separate table there, or should we add a new column to one of the existing tables? //Magnus