#2007: UnicodeDecodeError when logging to file
---------------------+------------------------------------------------------
Reporter: non7top | Owner:
Type: bug | Status: new
Priority: minor | Milestone: 1.4.0
Component: core | Version: git master
Keywords: |
---------------------+------------------------------------------------------
Comment(by non7top):
dev-lang/python 2.7.2-r3
net-libs/rb_libtorrent 0.15.6
I believe the error appears for torrents which have cyrillic in their
names and the issue does not re-appear when I run 'deluged --do-not-
daemonize -L debug'
I've added line 'print ("TEST", alert.message())' in alertmanager.py and
here is the output of relevant lines
{{{
('TEST', '\xd0\x93\xd0\xb0\xd1\x80\xd1\x80\xd0\xb8
\xd0\x9f\xd0\xbe\xd1\x82\xd1\x82\xd0\xb5\xd1\x80 \xd0\xb8
\xd1\x82\xd0\xb0\xd0\xb9\xd0\xbd\xd0\xb0\xd1\x8f
\xd0\xba\xd0\xbe\xd0\xbc\xd0\xbd\xd0\xb0\xd1\x82\xd0\xb0 (Harry Potter and
the Chamber of Secrets - Extended Cut).2002.BDRip.1080p.-MySiLU.mkv: state
changed to: downloading')
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/__init__.py", line 865, in emit
stream.write(fs % msg.encode("UTF-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 82:
ordinal not in range(128)
Logged from file alertmanager.py, line 125
}}}
Hope this helps
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/2007#comment:2>
Deluge <http://deluge-torrent.org/>
Deluge project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/deluge-dev?hl=en.