gwget barfs on special characters in the filename
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gwget2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gwget
I needed to download a file with some punctuation -- (, ) -- in the filename. Gwget connected to the server okay but then produced an "error: couldn't write to target directory." That was my home directory, so obviously I have permission. The most likely explanation is that the wget command failed because the special characters were not properly escaped.
This was the target file name:
望春风(Hope+
And the url:
(Note, however, that this link will not be valid forever -- download links from qq.com usually expire in a few weeks.)
I can think of a couple of solutions. Both would be good to implement.
1. More rigorous escaping of special characters.
2. Allow the user to input the target filename. Currently the filename is derived from the URL. Maybe the user wants to call the file on disk by another name, but gwget does not support this in any way that I can see.
gwget version 1.0.4-1.1ubuntu0.1