Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 318398 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 9999 patch
deluge-9999-unicode.patch (text/plain), 1.37 KB, created by
Micah Bucy
on 2012-07-17 03:28:16 UTC
(
hide
)
Description:
deluge 9999 patch
Filename:
MIME Type:
Creator:
Micah Bucy
Created:
2012-07-17 03:28:16 UTC
Size:
1.37 KB
patch
obsolete
>diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py >index 68e09a8..3202ded 100644 >--- a/deluge/core/torrent.py >+++ b/deluge/core/torrent.py >@@ -886,27 +886,20 @@ 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) >+ self.torrent_id, dest) > return False > try: >- self.handle.move_storage(dest_u) >- except: >+ self.handle.move_storage(dest) >+ 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