Opened 13 years ago
Closed 13 years ago
#1983 closed bug (Invalid)
Autoadd plugin not loading torrents with non-ascii char names
Reported by: | Pavle Dukanac | Owned by: | Calum |
---|---|---|---|
Priority: | minor | Milestone: | Future |
Component: | Plugin | Version: | 1.3.3 |
Keywords: | autoadd, utf, non ascii | Cc: | non7top@gmail.com |
Description
I load torrent by dropping them into watch folder and autoadd plugin loads them into deluge. On torrents with non-ascii character names files are not loaded into deluge and they stay in watch folder until i manually delete them. On manuall add via gui same torrent load properley.
sample file name that was not loaded:Los cronocrímenes
following error is written in deluged log:
[ERROR ] 00:56:46 core:204 Unable to auto add torrent due to inproper filename encoding: 'ascii' codec can't decode byte 0xc3 in position 19: ordinal not in range(128
OS used: ubuntu x64
Change History (6)
comment:1 by , 13 years ago
Milestone: | 1.3.x → 1.3.4 |
---|
comment:2 by , 13 years ago
Cc: | added |
---|
comment:3 by , 13 years ago
Owner: | set to |
---|---|
Status: | new → accepted |
comment:4 by , 13 years ago
I am unable replicate this unless I set LC_ALL=C, can you check that you have UTF8 language set for the OS?
comment:5 by , 13 years ago
Milestone: | 1.3.4 → Future |
---|---|
Priority: | major → minor |
i pmd my seedbox provider to check this , but you are probably right since on other box i took later it worked fine. other one is dedi box so probably it does have utf on by default. thx for pointing out possible cause of this. i will probably close ticket once cause is confirmed
comment:6 by , 13 years ago
Resolution: | → invalid |
---|---|
Status: | accepted → closed |
The following code helped a user with the same issue determine that deluged was actually running with ANSI_X3.4-1968 (ASCII) instead of UTF8 so adding it here for reference.
diff --git a/deluge/main.py b/deluge/main.py index b370c65..88268f8 100644 --- a/deluge/main.py +++ b/deluge/main.py @@ -209,7 +209,7 @@ def write_pidfile(): pass deluge.log.setupLogger(level=options.loglevel, filename=options.logfile) from deluge.log import LOG as log - + log.error(sys.getfilesystemencoding()) if options.profile: import hotshot hsp = hotshot.Profile(deluge.configmanager.get_config_dir("deluged.profile"))
Same issue here with latest git