Re: Add %z support to elog/ereport? - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Add %z support to elog/ereport?
Date
Msg-id 20131111165106.GE2401@awork2.anarazel.de
Whole thread Raw
In response to Re: Add %z support to elog/ereport?  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: Add %z support to elog/ereport?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2013-11-11 17:33:53 +0100, Andres Freund wrote:
> On 2013-11-11 11:18:22 -0500, Tom Lane wrote:
> > Andres Freund <andres@2ndquadrant.com> writes:
> > > I'd like to add support for the length modifier %z. Linux' manpages
> > > describes it as:
> > >  z      A  following  integer conversion corresponds to a size_t or ssize_t argument.

> > and what about the translation infrastructure?
> 
> That I have no clue about yet.

gettext has support for it afaics, it's part of POSIX:
http://www.gnu.org/software/gettext/manual/gettext.html#c_002dformat
http://www.opengroup.org/onlinepubs/007904975/functions/fprintf.html

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



pgsql-hackers by date:

Previous
From: Antonin Houska
Date:
Subject: Re: Comment - uniqueness of relfilenode
Next
From: Andres Freund
Date:
Subject: Re: logical changeset generation v6.6