RE: ftp bug in 1.10
From: Hrvoje Niksic [mailto:[EMAIL PROTECTED] the 64-bit download sum, doesn't work for you. What does this program print? #include stdio.h int main (void) { __int64 n = 100I64; // ten billion, doesn't fit in 32 bits printf(%I64\n, n); return 0; } It should print a line containing 100. If it does, it means we're applying the wrong format. If it doesn't, then we must find another way of printing LARGE_INT quantities on Windows. Folks, sorry for the delay, I've been on vacation and I'm still trying to catch up with work and stuff. %I64 not ok, %I64d is. Heiko -- -- PREVINET S.p.A. www.previnet.it -- Heiko Herold [EMAIL PROTECTED] [EMAIL PROTECTED] -- +39-041-5907073 ph -- +39-041-5907472 fax
Re: ftp bug in 1.10
Herold Heiko [EMAIL PROTECTED] writes: Downloaded: bytes in 2 files Note missing number of bytes. This would indicate that the %I64 format, which Wget uses to print the 64-bit download sum, doesn't work for you. What does this program print? #include stdio.h int main (void) { __int64 n = 100I64; // ten billion, doesn't fit in 32 bits printf(%I64\n, n); return 0; } It should print a line containing 100. If it does, it means we're applying the wrong format. If it doesn't, then we must find another way of printing LARGE_INT quantities on Windows.
Re: ftp bug in 1.10
Hrvoje Niksic [EMAIL PROTECTED] writes: This would indicate that the %I64 format, which Wget uses to print the 64-bit download sum, doesn't work for you. For what it's worth, MSDN documents it: http://tinyurl.com/ysrh/. Could you be compiling Wget with an older C runtime that doesn't support the %I64 format?
Re: ftp bug in 1.10
Hrvoje Niksic [EMAIL PROTECTED] wrote: It should print a line containing 100. If it does, it means we're applying the wrong format. If it doesn't, then we must find another way of printing LARGE_INT quantities on Windows. I don't know what compiler OP used, but Wget only uses %I64 for MSVC on Windows. Ref sysdep.h line 111-114. --gv
Re: ftp bug in 1.10
I64 is a size prefix akin to ll. One still needs to specify the argument type as in %I64d as with %lld.
Re: ftp bug in 1.10
David Fritz [EMAIL PROTECTED] writes: I64 is a size prefix akin to ll. One still needs to specify the argument type as in %I64d as with %lld. That makes sense, thanks for the explanation!
Re: ftp bug in 1.10
Herold Heiko schrieb: I have a reproducable report (thanks Igor Andreev) about a little verbouse log problem with ftp with my windows binary, is this reproducable on other platforms, too ? wget -v ftp://garbo.uwasa.fi/pc/batchutil/buf01.zip ftp://garbo.uwasa.fi/pc/batchutil/rbatch15.zip (seems to happen with any ftp download I tried though) Last line of output is: Downloaded: bytes in 2 files Note missing number of bytes. Heiko I see the same under Windows, but with a Linux version the output is correct. And it happens not only with ftp, also with multiple http requests. Regards, J.Roderburg