#2093: [win32] 'open-with' does not work for non-acsii torrents
-------------------------+----------------------
  Reporter:  IAmTheClaw  |      Owner:  Cas
      Type:  bug         |     Status:  reopened
  Priority:  minor       |  Milestone:  1.3.13
 Component:  Core        |    Version:  1.3.5
Resolution:              |   Keywords:
-------------------------+----------------------

Comment (by tyeken8):

 Replying to [comment:20 tobbez]:
 > This is all you get in the log when double-clicking the torrent in
 explorer, using deluge 1.3.11 running with the UI connected to a local
 daemon (not classic mode). Actual filename is ☃.torrent.
 > {{{
 > [DEBUG   ] 17:47:41 ipcinterface:181 Processing args from other process:
 ['O:\\?.torrent']
 > [DEBUG   ] 17:47:41 configmanager:111 Getting config 'gtkui.conf'
 > [DEBUG   ] 17:47:41 ipcinterface:192 arg: O:\?.torrent
 > [DEBUG   ] 17:47:41 ipcinterface:211 Attempting to add file
 (O:\?.torrent) from external source...
 > [ERROR   ] 17:47:41 ipcinterface:217 No such file: O:\?.torrent
 > }}}
 >
 > Using the Add Torrent dialog works here too.

 Indeed this is a further issue. If there is unicode-only characters (e.g.
 "・") in the file path, it will be encoded to "?" (question mark) in mbcs.

 http://stackoverflow.com/questions/846850/read-unicode-characters-from-
 command-line-arguments-in-python-2-x-on-windows

 The link above gives a more robust solution than decoding from sys.argv
 using mbcs, though it requires WinAPI support.

-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/2093#comment:22>
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 http://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to