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/