#2993: deluge-web fails due to "UnicodeDecodeError: 'utf8' codec can't decode
byte
0xc3 in position 18: unexpected end of data"
----------------------+------------------------------------
Reporter: krichter | Owner:
Type: bug | Status: new
Priority: minor | Milestone: needs verified
Component: Web UI | Version: other (please specify)
Keywords: |
----------------------+------------------------------------
After switching to the development PPA ppa:deluge-team/develop `deluge-
web` crashes with
{{{
> sudo python -m pdb /usr/bin/deluge-web
> /usr/bin/deluge-web(3)<module>()
-> __requires__ = 'deluge==2.0.0.dev6963'
(Pdb) c
Traceback (most recent call last):
File "/usr/lib/python2.7/pdb.py", line 1314, in main
pdb._runscript(mainpyfile)
File "/usr/lib/python2.7/pdb.py", line 1233, in _runscript
self.run(statement)
File "/usr/lib/python2.7/bdb.py", line 400, in run
exec cmd in globals, locals
File "<string>", line 1, in <module>
File "/usr/bin/deluge-web", line 3, in <module>
__requires__ = 'deluge==2.0.0.dev6963'
File "/usr/lib/python2.7/dist-packages/deluge/ui/web/__init__.py", line
7, in start
web = Web()
File "/usr/lib/python2.7/dist-packages/deluge/ui/web/web.py", line 27,
in __init__
super(Web, self).__init__('web', *args, description='Starts the Deluge
Web interface', **kwargs)
File "/usr/lib/python2.7/dist-packages/deluge/ui/ui.py", line 40, in
__init__
self.__parser = BaseArgParser(**kwargs)
File "/usr/lib/python2.7/dist-packages/deluge/ui/baseargparser.py", line
167, in __init__
super(BaseArgParser, self).__init__(*args, **kwargs)
File "/usr/lib/python2.7/argparse.py", line 1597, in __init__
self._positionals = add_group(_('positional arguments'))
File "/usr/lib/python2.7/gettext.py", line 584, in gettext
return dgettext(_current_domain, message)
File "/usr/lib/python2.7/gettext.py", line 548, in dgettext
codeset=_localecodesets.get(domain))
File "/usr/lib/python2.7/gettext.py", line 496, in translation
t = _translations.setdefault(key, class_(fp))
File "/usr/lib/python2.7/gettext.py", line 182, in __init__
self._parse(fp)
File "/usr/lib/python2.7/gettext.py", line 340, in _parse
tmsg = unicode(tmsg, self._charset)
File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xc3 in position 18:
unexpected end of data
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
> /usr/lib/python2.7/encodings/utf_8.py(16)decode()
-> return codecs.utf_8_decode(input, errors, True)
(Pdb) input
<read-only buffer ptr 0x7f1de00f5284, size 19 at 0x7f1de011d5f0>
(Pdb) print(input)
HT</b><b>Hinzugef�
}}}
The tail `Hinzugef�` indicates an issue with the german umlaut `ü` in the
word `Hinzufügen`.
experienced with 2.0.0.dev6963+9666781+201703011947~ubuntu16.10.1
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/2993>
Deluge <http://deluge-torrent.org/>
Deluge Project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/d/optout.