fail to download if file name contains space and non-ASCII

General support for problems installing or using Deluge
Post Reply
drop_table
New User
New User
Posts: 3
Joined: Sat Oct 10, 2015 2:02 pm

fail to download if file name contains space and non-ASCII

Post by drop_table »

[solved]See comment below
Recently I encountered error "No such file or directory", and I took some time to figure it out:
1. Filename contains no space, such as "the_walking_dead.mp4", no error.
2. Filename contains no space but some non-ASCII char, here some Chineses characters, like "你_好.mp4", no error.
3. Filename contains space and ASCII char, for example "the walking dead.mp4", no error.
4. Filename contains both space and non ASCII char, in my case, "[异域字幕组][青年黑杰克][Young Black Jack][02][1280x720][简体].mp4", the error takes place.
I am not sure if deluge doesn't support such filename or my locale settings are wrong. Any idea what can I do?
The detailed information is listed below if you are interested.
OS: Raspbian wheezy(Debian family)
Version: deluged & deluge-web: 1.3.3, libtorrent: 0.15.10.0
log:

Code: Select all

[DEBUG   ] 21:33:24 alertmanager:123 file_error_alert: [异域字幕组][青年黑杰克][Young Black Jack][02][1280x720][简体].mp4 file (/mnt/usbstorage/deluge/[异域字幕
组][青年黑杰克][Young Black Jack][02][1280x720][简体].mp4) error: Invalid argument
[DEBUG   ] 21:33:24 alertmanager:123 file_error_alert: [异域字幕组][青年黑杰克][Young Black Jack][02][1280x720][简体].mp4 file (/mnt/usbstorage/deluge/[异域字幕组][青年黑杰克][Young Black Jack][02][1280x720][简体].mp4) error: No such file or directory
locale settings:

Code: Select all

LANG=en_GB.UTF-8
LANGUAGE=
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
ps: English is not my mother tongue so please forgive me if any typo exists.
Last edited by drop_table on Tue Oct 13, 2015 2:18 am, edited 1 time in total.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: fail to download if file name contains space and non-ASC

Post by Cas »

As per bug reporting update both deluge and libtorrent to latest version. These issues should all be fixed in both.
drop_table
New User
New User
Posts: 3
Joined: Sat Oct 10, 2015 2:02 pm

Re: fail to download if file name contains space and non-ASC

Post by drop_table »

Mounting the storage device with parameter 'charset=utf8' may help.
Post Reply