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

Fx <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.general,gmane.comp.db.postgresql.devel.win32
Message-ID <[email protected]>
unix/win32 libc doesnt support "$n" variables..


On Mon, 17 Jan 2005 21:03:56 +0200, Nicolai Tufar <[email protected]> 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 [email protected]
> 


-- 
/* Jumping Flowers */

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [email protected] so that your
      message can get through to the mailing list cleanly
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.