Re: [Bug-wget] [PATCH] Regression since wget 1.10: no_prefix function is *bad*

2013-05-13 Thread Tim Rühsen
Am Sonntag, 12. Mai 2013 schrieb Ángel González: > On 12/05/13 21:50, Tim Rühsen wrote: > > A real solution would be a rewrite of the init stuff (I saw that already > > somewhere on the Wget 2.0 wish list or somewhere - don't remeber exactly). > > > > I already wrote this kind of code and would co

Re: [Bug-wget] [PATCH] replaced read_whole_file() by getline()

2013-05-13 Thread Giuseppe Scrivano
thanks for the patch. I have few comments: Tim Rühsen writes: > diff --git a/src/ChangeLog b/src/ChangeLog > index 84a9645..3b6733e 100644 > --- a/src/ChangeLog > +++ b/src/ChangeLog > @@ -1,5 +1,10 @@ > 2013-05-09 Tim Ruehsen > > + * cookies.c, ftp-ls.c, ftp.c, init.c, netrc.c, util

Re: [Bug-wget] [PATCH] Regression since wget 1.10: no_prefix function is *bad*

2013-05-13 Thread Bykov Aleksey
Greetings, Tim Rühsen. Possible that i'm understood wrong, but according to http://www.mingw.org/wiki/C99 MinGW doesn't support C99 at all. So i'm not sure about cross-compile. May be after implementation of C99 code it can be compiled only through CygWin (don't remember exactly, but two years ago

Re: [Bug-wget] [PATCH] Regression since wget 1.10: no_prefix function is *bad*

2013-05-13 Thread Tim Rühsen
Hi Alex, yes, it is the _PC_NAME_MAX issue which is only valid for pathconf(). Attached is the little patch to fix it. Since MinGW is based on gcc-4.6, C99 should be available. As the Wiki states (well, the entry is 3 years old...), printf() is the main issue. But there may be some other functi