bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #60494] Percent character in filename gets escaped twice


From: Kode Charlie
Subject: [bug #60494] Percent character in filename gets escaped twice
Date: Sat, 15 May 2021 07:58:38 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36

Follow-up Comment #2, bug #60494 (project wget):

Correction: based on debug-logs, quoted logic does seem ok. I am looking into
other logic _before_ convert_fname() (which calls _iconv()_) is called.

[comment #1 comment #1:]
> system: macOS Big Sur v. 11.2.3
> wget: master branch
> 
> Offending logic from *./src/url.c* is shown below. I believe the issue is in
*iconv()*.
> 
> 
>       if (iconv (cd, (ICONV_CONST char **) &fname, &inlen, &s, &outlen) ==
0
>           && iconv (cd, NULL, NULL, &s, &outlen) == 0)
>         {
>           *(converted_fname + len - outlen - done) = '\0';
>           iconv_close (cd);
>           DEBUGP (("Converted file name '%s' (%s) -> '%s' (%s)\n",
>                    orig_fname, from_encoding, converted_fname,
to_encoding));
>           xfree (orig_fname);
>           return converted_fname;
>         }
> 

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60494>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]