Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 329054 Details for
Bug 426912
net-p2p/deluge unicode casting problems with net-libs/rb_torrent 0.16.x
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
deluge 1.3.5 patch
deluge-1.3.5-unicode.patch (text/plain), 1.42 KB, created by
Fernando
on 2012-11-10 02:21:10 UTC
(
hide
)
Description:
deluge 1.3.5 patch
Filename:
MIME Type:
Creator:
Fernando
Created:
2012-11-10 02:21:10 UTC
Size:
1.42 KB
patch
obsolete
>diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py >index faf59a4..b8a6bf7 100644 >--- a/deluge/core/torrent.py >+++ b/deluge/core/torrent.py >@@ -834,25 +834,18 @@ def connect_peer(self, ip, port): > def move_storage(self, dest): > """Move a torrent's storage location""" > >- # Attempt to convert utf8 path to unicode >- # Note: Inconsistent encoding for 'dest', needs future investigation >- try: >- dest_u = unicode(dest, "utf-8") >- except TypeError: >- # String is already unicode >- dest_u = dest >- >- if not os.path.exists(dest_u): >+ if not os.path.exists(dest): > try: > # Try to make the destination path if it doesn't exist >- os.makedirs(dest_u) >+ os.makedirs(dest) > except IOError, e: > log.exception(e) >- log.error("Could not move storage for torrent %s since %s does not exist and could not create the directory.", self.torrent_id, dest_u) >+ log.error("Could not move storage for torrent %s since %s does not exist and could not create the directory.", self.torrent_id, dest) > return False > try: >- self.handle.move_storage(dest_u) >- except: >+ self.handle.move_storage(dest.encode("utf-8")) >+ except Exception, e: >+ log.exception(e) > return False > > return True
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 426912
:
318378
|
318380
|
318396
|
318398
|
318400
|
318402
| 329054