[Pkg-sugar-commit] [sugar-browse-activity] 07/18: fix #8857 - Browse fails to download some files with non-ascii characters

Jonas Smedegaard dr at jones.dk
Mon Apr 20 09:47:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 108.1
in repository sugar-browse-activity.

commit 85cfa5b196e978424efd9f01af5cc93020dabedf
Author: Gonzalo Odiard <godiard at sugarlabs.org>
Date:   Tue Oct 5 09:12:09 2010 -0300

    fix #8857 - Browse fails to download some files with non-ascii characters
---
 downloadmanager.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/downloadmanager.py b/downloadmanager.py
index dd75783..0c97184 100644
--- a/downloadmanager.py
+++ b/downloadmanager.py
@@ -130,8 +130,9 @@ class Download:
         self._last_update_percent = 0
         self._stop_alert = None
 
-        dom_window = _dest_to_window[self._target_file.path]
-        del _dest_to_window[self._target_file.path]
+        file_path = self._target_file.path.encode('utf-8', 'replace')
+        dom_window = _dest_to_window[file_path]
+        del _dest_to_window[file_path]
 
         view = hulahop.get_view_for_window(dom_window)
         print dom_window

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-browse-activity.git



More information about the pkg-sugar-commit mailing list