From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgreSQL(dot)org |
Subject: | Re: Re: [COMMITTERS] pgsql: Explicitly bind gettext to the correct encoding on Windows. |
Date: | 2009-04-20 09:37:51 |
Message-ID: | 49EC426F.5020602@hagander.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
Heikki Linnakangas wrote:
> Magnus Hagander wrote:
>> Tom Lane wrote:
>>> Magnus Hagander <magnus(at)hagander(dot)net> writes:
>>>> Tom Lane wrote:
>>>>> 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?
>>> Whichever seems to make more sense is fine with me. I just don't want
>>> add-an-encoding maintenance requirements spread across N different
>>> source files.
>>
>> I was about to start looking at this when that other thread
>> (http://archives.postgresql.org//pgsql-hackers/2009-03/msg01270.php)
>> started about related issues on other platforms. Seems we should have a
>> "coordinated fix" for this, so I'm going to want and see what come sout
>> of that one. Unless I'm misunderstanding thigns and they're not related?
>
> I've committed a fairly trivial patch per Peter's suggestion to fix the
> other thread's issue. I left the table as is, so whatever refactorings
> were planned can now be applied.
Here's a patch that moves the table over to encnames.c, and renames it
to look like the others.
I don't know what it should be doing if it can't find a match, so I
haven't changed that behavior.
Comments?
//Magnus
Attachment | Content-Type | Size |
---|---|---|
enctable.patch | text/x-diff | 3.7 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2009-04-20 14:38:02 | Re: Re: [COMMITTERS] pgsql: Explicitly bind gettext to the correct encoding on Windows. |
Previous Message | User Itagaki | 2009-04-20 09:32:34 | pgbulkload - pgbulkload: Preparing Release 2.4.0. |
From | Date | Subject | |
---|---|---|---|
Next Message | Fujii Masao | 2009-04-20 10:54:25 | Re: New trigger option of pg_standby |
Previous Message | Heikki Linnakangas | 2009-04-20 09:06:09 | Re: New trigger option of pg_standby |