[Pkg-anonymity-tools] [onionshare] 98/140: make onionshare use utf-8 to support unicode filenames, partial fix for #141

Ulrike Uhlig u-guest at moszumanska.debian.org
Mon Sep 29 20:33:52 UTC 2014


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

u-guest pushed a commit to branch master
in repository onionshare.

commit 8514f74b1cbbab360838887188be9551e49fcab2
Author: Micah Lee <micah at micahflee.com>
Date:   Tue Sep 16 00:08:27 2014 +0000

    make onionshare use utf-8 to support unicode filenames, partial fix for #141
---
 onionshare/helpers.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/onionshare/helpers.py b/onionshare/helpers.py
index 3aabfcc..66e94c1 100644
--- a/onionshare/helpers.py
+++ b/onionshare/helpers.py
@@ -20,6 +20,12 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import os, inspect, hashlib, base64, hmac, platform, zipfile
 from itertools import izip
 
+# hack to make unicode filenames work (#141)
+import sys
+reload(sys)
+sys.setdefaultencoding("utf-8")
+
+
 def get_platform():
     p = platform.system()
     if p == 'Linux' and platform.uname()[0:2] == ('Linux', 'amnesia'):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/onionshare.git



More information about the Pkg-anonymity-tools mailing list