| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| X-Authentication-Warning: | mail1.nada.kth.se: www set sender to d94-llu AT nada DOT kth DOT se using -f |
| To: | cygwin AT sources DOT redhat DOT com |
| Subject: | Re: wget bug? |
| Message-ID: | <984141109.3aa8cd35d281b@mail1.nada.kth.se> |
| Date: | Fri, 09 Mar 2001 13:31:49 +0100 (MET) |
| From: | d94-llu AT nada DOT kth DOT se |
| References: | <984140068 DOT 18214 DOT ezmlm AT sources DOT redhat DOT com> |
| In-Reply-To: | <984140068.18214.ezmlm@sources.redhat.com> |
| MIME-Version: | 1.0 |
| User-Agent: | IMP/PHP IMAP webmail program 2.2.1 |
| X-Originating-IP: | 193.14.81.234 |
I found where to change all ? to _.
This is an ugly solution not checking that FS is NTFS or anything such. Also
other protocols (ftp) should be fixed.
Small patch:
/usr/local/src/wget-1.6/src$ diff http.c http2.c
749a750,762
> /* Windows doesn't (always) allow /\:*?"<>| in filenames,
> Change to _ and pray for none name-clashes.
> But / and \ are path-indicators. Leave them.
> Leif Lundgren, 2001-03-09
> */
> {
> int i;
> const char bad_chars[] = ":*?\"<>|";
> for ( i=0; u->local[i] != '\0'; i++ )
> if ( strchr( bad_chars, u->local[i] ) != NULL )
> u->local[i] = '_';
> }
>
At Fri, 09 Mar 2001 12:59:12 +0100 (MET) Leif Lundgren wrote:
>
> I think I have discoved a bug in the port of wget. (Version 1.6)
>
> If you download an url containing a '?' you get an error. wget tries to
> create a file containing a '?'.
>
> Example:
> wget "http://search.altavista.com/cgi-bin/query?
> q=cygwin&kl=XX&pg=q&Translate=on"
>
> Does the rest of the world have the same problem?
>
> Regards
> Leif Lundgren
>
>
> ---------
> System is Windows 2000, NTFS volume.
>
> Cygwin DLL version info:
> dll major: 1001
> dll minor: 8
> dll epoch: 19
> dll bad signal mask: 19005
> dll old termios: 5
> dll malloc env: 28
> api major: 0
> api minor: 34
> shared data: 3
>
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |