Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 21502

Summary: wget fails on ftp mirrors using a proxy (squid)
Product: Portage Development Reporter: Alexander Holler <aholler>
Component: UnclassifiedAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED CANTFIX    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander Holler 2003-05-22 16:54:19 UTC
Hello, 
 
using a ftp-mirror through squid (I haven't tested other proxies)  fails on most text 
files. The problem is that wget will leave the proxy decide wether to fetch the file in 
ascii or binary. So all text files will get an 0d0a (fetched as text). 
 
I haven't found (nor searched) an workaround, but a quick google lookup found the 
following which describes the problem better than I. ;) 
 
http://www.geocrawler.com/archives/3/409/1999/6/0/2336937/ 
 
Files for testing are all *.c in usr/portage/distfiles, e.g. pdf.c, r128.c or ether-wake.c 
 
Regards, 
 
Alexander 
 
PS: I've marked the bug major, because I've bothered some ftp-mirror-admins to check 
if their files are correct. This is a really weired bug (in wget or squid?). 
 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-06-04 16:54:44 UTC
which wget version ?
which squid version ?

i'm going through 2 squids without any problems
Comment 2 Alexander Holler 2003-06-04 17:08:33 UTC
Any wget, any squid. I have this problem since many months, but noticing it seldom because 
I'm normally use a local rsync mirror and those *.c files are changing seldom. 
 
Try ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo as mirror, this is a mirror which sends *.c as 
text. 
 
Regards, 
 
Alexander 
 
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-08-03 08:06:12 UTC
not really a gentoo issue

a) wrong config (ftpd)
b) wrong squid config
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2003-10-09 17:24:20 UTC
Old bug.  Should be CANTFIX.