[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Unsupported printf positional parameters on Windows [was: Re: Resolution: only print specific error message when present]

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-12-08 18:15:55 CET

Greg Hudson wrote:
> On Mon, 2003-12-08 at 09:41, Julian Foad wrote:
>
>>Branko Čibej wrote:
>>
>>>I'm much more concerned about the nightmare of unsupported printf
>>>positional parameters on Windows...
>>
>>Huh? Care to state briefly (but less briefly) what you mean by that, so I can at least try to avoid the problem when writing portable code?
>
> I'm not sure which aspect you need an explanation of, so I'll explain
> everything I know.

Thanks; I didn't know what you meant by "printf positional parameters" because I had never come across them.

> "%2$d Zeichen lang ist die Ziechenkette '%1$s'\n"
>
> Apparently, Windows doesn't have this support.

Nor does standard C, so you can't rely on any platform having support for this.

> But I don't see why that
> matters; we almost exclusively use apr_psprintf. There doesn't appear
> to be positional argument support in apr_vformatter(), but that's not a
> Windows-specific problem, and we can presumably fix it with enough work.

Yes, OK, I suppose we could implement them in APR.

It certainly sounds like a useful feature for this purpose.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Dec 8 18:10:55 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.