Skip site navigation (1) Skip section navigation (2)

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

From: Fx <weimaraner(at)gmail(dot)com>
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:17:33
Message-ID: 661195ee050117111748919052@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-hackers-win32
unix/win32 libc doesnt support "$n" variables..


On Mon, 17 Jan 2005 21:03:56 +0200, Nicolai Tufar <ntufar(at)gmail(dot)com> wrote:
> Sorry for such a late submission.
> 
> I just downloaded the latest postgresql-8.0.0-rc5-3.zip installer
> for windows and it appears that Windows' printf() does not
> support placeholder replacement as described in
> http://developer.postgresql.org/docs/postgres/nls.html#AEN57284
> 
> I searched list archives but found no explanation for this.
> Original string is <<%s at or near \"%s\">> and we
> replaced it in Turkish for <<\"%2$s\"  yerinde %1$s>>.
> 
> It works perfectly fine on Linux but fails miserably under
> Windows with something like:
> <<HATA:  "$s"  yerinde $sat character 1>>
>     while on Linux the same version works fine:
> <<HATA: "sdfassfsdfasd" yerinde söz dizim hatasý at character 1 >>
> 
> What is it? I suppose that Windows' printf() does
> not support changing the order of placeholder
> characters with %2$ .... %1$. Did some one else
> deal with it? Is it because of compilation flags?
> 
> In any case PostgreSQL version in current pginstaller
> is broken.
> 
> Best regards,
> Nicolai
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
> 


-- 
/* Jumping Flowers */

In response to

Responses

pgsql-hackers by date

Next:From: Nicolai TufarDate: 2005-01-17 19:20:22
Subject: Re: [HACKERS] %2$, %1$ gettext placeholder replacement is not working under Win32
Previous:From: Nicolai TufarDate: 2005-01-17 19:03:56
Subject: %2$, %1$ gettext placeholder replacement is not working under Win32

pgsql-hackers-win32 by date

Next:From: Nicolai TufarDate: 2005-01-17 19:20:22
Subject: Re: [HACKERS] %2$, %1$ gettext placeholder replacement is not working under Win32
Previous:From: Nicolai TufarDate: 2005-01-17 19:03:56
Subject: %2$, %1$ gettext placeholder replacement is not working under Win32

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group