cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: patch to print version info on stderr

From: David Byron <DByron_at_everdreamcorp.com>
Date: Thu, 18 Sep 2003 08:26:00 -0700

On Thu, 18 Sep 2003, Daniel Stenberg wrote:

> On Wed, 17 Sep 2003, David Byron wrote:
>
> > How's this?
>
> It looks like a working approach, sure, but you haven't
> convinced me that we need it in the first place.
>
> This is a fairly complicated way to add a function to curl,
> that all operating systems already provide. Redirecting
> version info from stdout is nothing curl needs to bother
> with. Redirecting stderr was a silly enough feature to add,
> and that was done only because some systems don't offer
> enough flexibility to differentiate between stdout and stderr.

I guess this is a bit complicated, but simpler than the many pages of
Windows API code I'll need to wade through to do it another way. Yes, MSDN
has example code. Yes, it's not rocket science. Maybe it just comes down
to personal preference, but I thought I'd try to avoid it.

> I don't think the use case "I write a program that wants to
> check the curl version and I can't use a normal system call
> to fetch stdout" is very common.

Probably not. Not sure I can be more convincing than to say it would help
me out and if it doesn't cause anyone more grief, I'd love to see it. Yes,
it's more code to maintain and probably increases code size and memory usage
very slightly. For me, it's less code and less code size increase overall
(in curl + my app) than the alternative.

Thanks much.

-DB

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-18