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

Repleacement for src/port/snprintf.c

From: Nicolai Tufar <ntufar(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>,Magnus Hagander <mha(at)sollentuna(dot)net>, pgsql-hackers(at)postgresql(dot)org,pgsql-hackers-win32(at)postgresql(dot)org, pgsql-patches(at)postgresql(dot)org,devrim(at)gunduz(dot)org
Subject: Repleacement for src/port/snprintf.c
Date: 2005-02-09 07:59:28
Message-ID: d80929390502082359454c3679@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-hackers-win32pgsql-patches
Hello all,

I would like to submit my changes to src/port/snprintf.c to
enable %n$ format placeholder replacement in snprintf() and
vsnprintf(). Additionally I implemented a trivial printf().

I also attach a diff for configure.in to include snprintf.o
in pgport but I am sure it is not the right thing to do.
Could someone give a hint on where I need to place such a
definition.

Please review my patch. as Tom Lane pointed out there
are 150 messages in the following files that do not print
properly:

src/backend/po/pt_BR.po
src/backend/po/de.po
src/backend/po/es.po
src/backend/po/zh_CN.po
src/backend/po/tr.po
src/bin/pg_dump/po/zh_CN.po
src/bin/pg_dump/po/tr.po
src/bin/psql/po/zh_CN.po
src/bin/psql/po/zh_TW.po
src/bin/psql/po/tr.po
src/bin/scripts/po/zh_CN.po

we need to fix snprintf.c before next release

Best regards,
Nicolai Tufar

Attachment: configure.in.diff
Description: text/plain (307 bytes)
Attachment: snprintf.diff
Description: text/plain (10.0 KB)

In response to

Responses

pgsql-hackers by date

Next:From: pgsqlDate: 2005-02-09 13:45:59
Subject: Re: Query optimizer 8.0.1 (and 8.0)
Previous:From: Dave PageDate: 2005-02-09 07:06:28
Subject: Re: How can I use large object on PostgreSQL Linux

pgsql-patches by date

Next:From: Ed L.Date: 2005-02-09 18:49:28
Subject: Re: dbsize patch
Previous:From: Neil ConwayDate: 2005-02-09 04:56:33
Subject: memory leak in ALTER TABLE

pgsql-hackers-win32 by date

Next:From: Bruce MomjianDate: 2005-02-14 00:06:34
Subject: Re: [pgsql-hackers-win32] Repleacement for src/port/snprintf.c
Previous:From: Magnus HaganderDate: 2005-02-03 13:43:47
Subject: Re: minGW compilation does not produce postmaster.exe

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