Am Freitag, 19. Dezember 2014, 18:18:31 schrieb Eli Zaretskii: > I've built wget 1.16.1 on GNU/Linux as well, and compared the test > results to try and figure out why some tests fail on Windows. > > When I run Test-ftp-bad-list.px on GNU/Linux, I see this output: > > Running test Test-ftp-bad-list > Calling /srv/data/home/e/eliz/wget-1.16.1/tests/../src/wget -nH -Nc -r > ftp://localhost:40221/ --2014-12-19 11:13:27-- ftp://localhost:40221/ > => ‘.listing’ > Resolving localhost (localhost)... ::1, 127.0.0.1 > Connecting to localhost (localhost)|::1|:40221... failed: Connection > refused. Connecting to localhost (localhost)|127.0.0.1|:40221... connected. > Logging in as anonymous ... Logged in! > ==> SYST ... done. ==> PWD ... done. > ==> TYPE I ... done. ==> CWD not needed. > ==> PASV ... done. ==> LIST ... _LIST_command - dir is: / > done. > > .listing [ <=> ] 92 --.-KB/s in > 0s > > 2014-12-19 11:13:27 (3.65 MB/s) - ‘.listing’ saved [92] > > Removed ‘.listing’. > The sizes do not match (local 12) -- retrieving. > > --2014-12-19 11:13:27-- ftp://localhost:40221/afile.txt > => ‘afile.txt’ > ==> CWD not required. > ==> SIZE afile.txt ... 12 > File has already been retrieved. > 2014-12-19 11:13:27 (0.00 B/s) - ‘afile.txt’ saved [12] > > But on Windows the same test yields this: > > Running test Test-ftp-bad-list > Calling /d/gnu/wget-1.16.1/tests/../src/wget -nH -Nc -r > ftp://localhost:3244/ --2014-12-19 18:14:54-- ftp://localhost:3244/ > => '.listing' > Resolving localhost (localhost)... 127.0.0.1 > Connecting to localhost (localhost)|127.0.0.1|:3244... connected. > Logging in as anonymous ... Logged in! > ==> SYST ... done. ==> PWD ... done. > ==> TYPE I ... done. ==> CWD not needed. > ==> PASV ... done. ==> LIST ... _LIST_command - dir is: / > done. > > .listing [ <=> ] 88 --.-KB/s in > 0s > > 2014-12-19 18:14:54 (818 KB/s) - '.listing' saved [88] > > Removed '.listing'. > --2014-12-19 18:14:54-- ftp://localhost:3244/ > => 'index.html' > ==> CWD not required. > ==> SIZE ... done. > > ==> PASV ... done. ==> RETR ... > No such file ''. > > Note the 'index.html' thing -- that's where the difference between the > two systems begins. Looks like the server behaves differently, > doesn't it? > > Does anyone have a clue what is going on here? Any bells ring for > anyone?
I fixed a locale thing a while ago. It was FTPServer.pm using strftime() generating non-english month names. Wget expects english month names (of course). What fixed that for me was a change in WgetTests.pm: ... # FTP Server has to start with english locale due to use of strftime month names in LIST command setlocale(LC_ALL, 'C'); $self->_launch_server( ... Maybe this is not enough in your environment... That also might be the reason for other failures. Do you have a recent version of the auto* tools installed ? Maybe you can tell me your locale settings and/or try using the same locale settings on Gnu/Linux. 'make check' explicitly sets LC_ALL=C. So i could produce these errors only with TESTS_ENVIRONMENT="LC_ALL=de_DE.utf8" make check Since these things are 'fixed for me', I can't reproduce them any more. And thus can't be of much further help. Tim
signature.asc
Description: This is a digitally signed message part.