Re: [HACKERS] %2$, %1$ gettext placeholder replacement is not working under Win32

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Nicolai Tufar <ntufar(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org, pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: [HACKERS] %2$, %1$ gettext placeholder replacement is not working under Win32
Date: 2005-01-17 19:54:44
Message-ID: 9590.1105991684@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-hackers-win32

I wrote:
> I don't think we'll hold up release to fix this, but the affected
> translators may want to think about whether they can avoid the problem
> or not.

Also, it looks like src/port/snprintf.c is not %n$ capable either.
I'm not sure which platforms that affects.

A possible route to a solution is to upgrade snprintf.c and then use
it on platforms that don't have this support. This only fixes those
cases where we go through snprintf, which is probably not all of the
affected messages, but it might be enough. It's not happening for
8.0.0 though.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2005-01-17 19:57:33 Re: ARC patent
Previous Message Tom Lane 2005-01-17 19:48:46 Re: ARC patent

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Cesar Schneider 2005-01-17 20:04:06 pg_restore
Previous Message Tom Lane 2005-01-17 19:41:18 Re: %2$, %1$ gettext placeholder replacement is not working under Win32