wget crashes on downloading non-ASCII resources

Bug #1618923 reported by Stas
This bug affects 2 people
Affects Status Importance Assigned to Milestone
wget (Ubuntu)

Bug Description

Is it possible to bump wget in Xenial to 1.18 or greater, it has an important change(from Changelog):

* When Wget is built with libiconv, it now converts non-ASCII URIs to
  the locale's codeset when it creates files. The encoding of the
  remote files and URIs is taken from --remote-encoding, defaulting to
  UTF-8. The result is that non-ASCII URIs and files downloaded via
  HTTP/HTTPS and FTP will have names on the local filesystem that
  correspond to their remote names.

Which fixes incorrect filenames for non-ASCII files like that(sorry, you cannot download the url, it is only available in my country):

#wget --content-disposition http://www.ex.ua/get/115661207
--2016-08-31 17:21:24-- http://www.ex.ua/get/115661207
Resolving www.ex.ua (www.ex.ua)...
Connecting to www.ex.ua (www.ex.ua)||:80... connected.
HTTP request sent, awaiting response... 302 Moved
Location: http://fs42.www.ex.ua/get/ed7be0c7edfd41561e312f0ad29902de/115661207/17%20%D0%91%D1%80%D0%B0%D1%82%20%D0%97%D0%B0%20%D0%91%D1%80%D0%B0%D1%82%D0%B0.mp3 [following]
--2016-08-31 17:21:24-- http://fs42.www.ex.ua/get/ed7be0c7edfd41561e312f0ad29902de/115661207/17%20%D0%91%D1%80%D0%B0%D1%82%20%D0%97%D0%B0%20%D0%91%D1%80%D0%B0%D1%82%D0%B0.mp3
Resolving fs42.www.ex.ua (fs42.www.ex.ua)...
Connecting to fs42.www.ex.ua (fs42.www.ex.ua)||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8875676 (8.5M) [audio/mpeg]
Saving to: ‘17 \320%91\321%80а\321%82 \320%97а \320%91\321%80а\321%82а.mp3’

Segmentation fault (core dumped)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in wget (Ubuntu):
status: New → Confirmed
Revision history for this message
Amirhossein Goodarzi (numb95) wrote :

for me When I try to Download a file contains a UTF-8 name with a Tab in the name the wget shows me core dump error.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.