cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

Re: [cURLpp] 0.6.0 pre-4 on M$

From: Giuseppe Corbelli <cowo_at_lugbs.linux.it>
Date: Wed, 18 Jan 2006 14:23:08 +0100

Jean-Philippe Barrette-LaPierre wrote:
> Le Janvier 9, 2006 04:05 AM, Giuseppe Corbelli a écrit :
>> Hi all
>> just downloaded the new release. It's missing the Makefile.msvc, attached
>> in the post of 16 dec, to be put in curlpp/, to build the library using
>> commandline tools. I'm attaching a Makefile.msvc for examples/ and a
>> curlpp.vcproj with some settings updated (some include dirs and output file
>> names).
>
> I just made the sources available with subversion. Can you check that
> everything is okay? When you'll give me the okay, I'll publish cURLpp-0.6.0.

OK. I'll give it a try.

>> IMPORTANT: example11 does not download files correctly! It seems that some
>> line-end translation happens, even if outfile is created with "wb".
>> In short, every '\n' is translated to '\r\n'. Is it possible this is a bug
>> in cURLpp?
>
> I doubt it. I think it's libcURL related. But is it really a bug? I'll ask
> Daniel.

No it's not a bug. It's me that I don't connect the brain before speaking.
Of course on win32 the stdout is open in "text mode" so line end translation
is applied; I was using the example with output redirection, while if I
specify the filename no problem at all.
At least I noticed that the output file is opened with "w" mode, while on
win32 "wb" would be better. So please apply this fabulous patch on example11.cpp

68c68
< file = fopen(filename, "w");

---
>       file = fopen(filename, "wb");
>> Yes, I will provide a README.Win32 ASAP.
Maybe wait for this before making the 0.6.0 release.
PS: would it be better for you if I make changes to this win32 related stuff 
directly on the repository or should I attach stuff to the mail as I've done 
before?
-- 
         Giuseppe "Cowo" Corbelli ~\/~ My software: http://cowo.yoda2000.net
-<! Non c'e' niente da dire in proposito. Tutto quello che uno deve fare e'
   colpire i tasti giusti al momento giusto, e lo strumento suona da solo. !>-
                                 J.S. Bach
_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2006-01-18

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET