Custom Query (2449 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (271 - 273 of 2449)

Ticket Resolution Summary Owner Reporter
#2045 Fixed UnicodeDecodeError for non-english named torrents (non en_US locale) Cas angry_vincent
Description
info "Torrent Name"
'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/deluge/ui/console/main.py", line 328, in do_command
    ret = self._commands[cmd].handle(*args, **options.__dict__)
  File "/usr/lib64/python2.7/site-packages/deluge/ui/console/commands/info.py", line 130, in handle
    torrent_ids.extend(self.console.match_torrent(arg))
  File "/usr/lib64/python2.7/site-packages/deluge/ui/console/main.py", line 445, in match_torrent
    if tid.startswith(string) or name.startswith(string):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)

#3199 Fixed unicode crash in deluge-console Cas pjlbyrne
Description

I 'fixed' (I think) a bug in deluge-console. Please how may I submit it for approval / checkin? Here is the stacktrace:

16:58:57.792 [ERROR   ][deluge.ui.console.modes.basemode                      :1207] 'ascii' codec can't encode character u'\xf9' in position 15: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev141-py2.7.egg/deluge/ui/console/modes/basemode.py", line 210, in doRead
    self.read_input()
  File "/usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev141-py2.7.egg/deluge/ui/console/modes/torrentlist/torrentlist.py", line 286, in read_input
    self.minor_mode.handle_read(c)
  File "/usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev141-py2.7.egg/deluge/ui/console/modes/torrentlist/search_mode.py", line 195, in handle_read
    self.torrentlist.refresh([])
  File "/usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev141-py2.7.egg/deluge/ui/console/modes/torrentlist/torrentlist.py", line 223, in refresh
    self.torrentview.update_torrents(lines)
  File "/usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev141-py2.7.egg/deluge/ui/console/modes/torrentlist/torrentview.py", line 325, in update_torrents
    trim=False, scr=self.torrentlist.torrentview_panel,
  File "/usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev141-py2.7.egg/deluge/ui/console/modes/basemode.py", line 160, in add_string
    return add_string(row, string, screen, self.encoding, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev141-py2.7.egg/deluge/ui/console/modes/basemode.py", line 290, in add_string
    screen.addstr(row, col, string, color)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf9' in position 15: ordinal not in range(128)

Here is my proposed fix:

~/deluge $ git diff deluge/ui/console/modes/basemode.py
diff --git a/deluge/ui/console/modes/basemode.py b/deluge/ui/console/modes/basemode.py
index 6226d1bc1..804ccdb42 100644
--- a/deluge/ui/console/modes/basemode.py
+++ b/deluge/ui/console/modes/basemode.py
@@ -287,6 +287,7 @@ def add_string(row, fstring, screen, encoding, col=0, pad=True, pad_char=' ', tr
                 string = string[0:remaining_chrs]

         try:
+            string = string.encode( encoding )
             screen.addstr(row, col, string, color)
         except curses.error as ex:
             # Ignore exception for writing offscreen.[/code]

Thanks

Patrick

#1528 Duplicate unicode char fail firefox
Description

downloading a torrent with a special char like: [Torrented org]Adèle E L Enigma Del Faraone 2010 iTALiAN AC3 5 1 BRRip XviD avi will create problems with deluge-console if you call from terminal deluge-console info will show this: Error getting torrent info: [Failure instance: Traceback: <type 'exceptions.UnicodeEncodeError?'>: 'ascii' codec can't encode character u'\xe0' in position 30: ordinal not in range(128) /usr/lib/python2.6/dist-packages/twisted/internet/tcp.py:460:doRead /usr/lib/pymodules/python2.6/deluge/ui/client.py:183:dataReceived /usr/lib/python2.6/dist-packages/twisted/internet/defer.py:318:callback /usr/lib/python2.6/dist-packages/twisted/internet/defer.py:424:_startRunCallbacks --- <exception caught here> --- /usr/lib/python2.6/dist-packages/twisted/internet/defer.py:441:_runCallbacks /usr/lib/pymodules/python2.6/deluge/ui/console/commands/info.py:119:on_torrents_status /usr/lib/pymodules/python2.6/deluge/ui/console/commands/info.py:142:show_info /usr/lib/pymodules/python2.6/deluge/ui/console/main.py:273:write ]

and the torrent is not show up. with some other chars will not show up anything.

Note: See TracQuery for help on using queries.