Discussion:
[Deluge] #3212: UnicodeDecodeError in common.get_default_download_dir
Deluge
2018-11-08 14:23:23 UTC
Permalink
#3212: UnicodeDecodeError in common.get_default_download_dir
-------------------+---------------------------
Reporter: Cas | Owner:
Type: bug | Status: new
Priority: major | Milestone: 2.0.0
Component: Core | Version: develop (git)
Keywords: |
-------------------+---------------------------
From forum: https://forum.deluge-
torrent.org/viewtopic.php?f=8&p=228974&sid=0dc2019d419175b43045df9d52efe1a2#p228974

{{{
~$ deluge
Traceback (most recent call last):
File "/usr/bin/deluge", line 11, in <module>
load_entry_point('deluge==2.0.0.dev7379', 'gui_scripts', 'deluge')()
File "/usr/lib/python2.7/dist-packages/deluge/ui/ui_entry.py", line 143,
in start_ui
ui.start()
File "/usr/lib/python2.7/dist-packages/deluge/ui/gtk3/__init__.py", line
43, in start
from .gtkui import GtkUI
File "/usr/lib/python2.7/dist-packages/deluge/ui/gtk3/gtkui.py", line
119, in <module>
'choose_directory_dialog_path': get_default_download_dir(),
File "/usr/lib/python2.7/dist-packages/deluge/common.py", line 152, in
get_default_download_dir
if not line.startswith('#') and line.startswith('XDG_DOWNLOAD_DIR'):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 23:
ordinal not in range(128)
}}}

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3212>
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 deluge-dev+***@googlegroups.com.
To post to this group, send email to deluge-***@googlegroups.com.
Visit this group at https://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/d/optout.
Deluge
2018-11-08 14:23:53 UTC
Permalink
#3212: UnicodeDecodeError in common.get_default_download_dir
--------------------+---------------------------
Reporter: Cas | Owner: Cas
Type: bug | Status: assigned
Priority: major | Milestone: 2.0.0
Component: Core | Version: develop (git)
Resolution: | Keywords:
--------------------+---------------------------
Changes (by Cas):

* status: new => assigned
* owner: => Cas


Comment:

Using io.open with `encoding='utf8'` should suffice

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3212#comment:1>
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 deluge-dev+***@googlegroups.com.
To post to this group, send email to deluge-***@googlegroups.com.
Visit this group at https://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/d/optout.
Deluge
2018-11-12 10:02:37 UTC
Permalink
#3212: UnicodeDecodeError in common.get_default_download_dir
--------------------+---------------------------
Reporter: Cas | Owner: Cas
Type: bug | Status: closed
Priority: major | Milestone: 2.0.0
Component: Core | Version: develop (git)
Resolution: Fixed | Keywords:
--------------------+---------------------------
Changes (by Cas):

* status: assigned => closed
* resolution: => Fixed


--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3212#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 unsubscribe from this group and stop receiving emails from it, send an email to deluge-dev+***@googlegroups.com.
To post to this group, send email to deluge-***@googlegroups.com.
Visit this group at https://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/d/optout.
Loading...