Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#2948 closed bug (Fixed)

Non-Ascii Character Breaks Console Torrent Remove

Reported by: coreyme Owned by:
Priority: minor Milestone: 1.3.14
Component: Console UI Version: 1.3.13
Keywords: ascii Cc:

Description

If a torrent with a non-ascii character like an En Dash in its name is running, the console command "deluge-console.exe rm --remove_data <id>" will fail for ANY torrent and returns the message:

'ascii' codec can't decode byte 0xe2 in position 9: ordinal not in range(128)
[ERROR   ] 13:48:42 main:347 'ascii' codec can't decode byte 0xe2 in position 9: ordinal not in range(128)
Traceback (most recent call last):
  File "deluge\ui\console\main.py", line 344, in do_command
  File "deluge\ui\console\commands\rm.py", line 61, in handle
  File "deluge\ui\console\main.py", line 462, in match_torrent
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 9: ordinal not in range(128)
Traceback (most recent call last):
  File "deluge\ui\console\main.py", line 344, in do_command
  File "deluge\ui\console\commands\rm.py", line 61, in handle
  File "deluge\ui\console\main.py", line 462, in match_torrent
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 9: ordinal not in range(128)

Removing the torrent with the non-ascii character resolves the problem.

Change History (5)

comment:1 Changed 7 years ago by Cas

  • Milestone changed from needs verified to 1.3.14

comment:2 Changed 7 years ago by Cas

This is odd because there was a fix applied: 5d0dace1317ac

So I shall I have to try to replicate myself and see if our own decode function works.

Version 0, edited 7 years ago by Cas (next)

comment:3 Changed 7 years ago by coreyme

Thanks! If it matters, I'm running Deluge 1.3.13 on Windows 10 x64 with my language set to English (Canada).

comment:4 Changed 7 years ago by Cas

  • Resolution set to Fixed
  • Status changed from new to closed

Ah it was only a half-fix for #2045, that's the other bit done now :)

Fixed 1.3-stable: [30eaf775c2d5]

comment:5 Changed 7 years ago by coreyme

Thanks, Cas!

Note: See TracTickets for help on using tickets.