mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-29 15:53:38 -05:00
make onionshare use utf-8 to support unicode filenames, partial fix for #141
This commit is contained in:
parent
43f3f4123a
commit
8514f74b1c
@ -20,6 +20,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
import os, inspect, hashlib, base64, hmac, platform, zipfile
|
import os, inspect, hashlib, base64, hmac, platform, zipfile
|
||||||
from itertools import izip
|
from itertools import izip
|
||||||
|
|
||||||
|
# hack to make unicode filenames work (#141)
|
||||||
|
import sys
|
||||||
|
reload(sys)
|
||||||
|
sys.setdefaultencoding("utf-8")
|
||||||
|
|
||||||
|
|
||||||
def get_platform():
|
def get_platform():
|
||||||
p = platform.system()
|
p = platform.system()
|
||||||
if p == 'Linux' and platform.uname()[0:2] == ('Linux', 'amnesia'):
|
if p == 'Linux' and platform.uname()[0:2] == ('Linux', 'amnesia'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user