summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-03-21 13:39:53 -0300
committerTomás Touceda <chiiph@leap.se>2013-03-22 13:08:49 -0300
commit031f84229bb34a62816a9f0fa5d80ae89c285801 (patch)
tree01461dace316b08c1d4e4b2e4c72aebe73d1af99 /src
parent5488aa1c4f01be567248c2a8ccd0d49d4161877b (diff)
Alias cp65001 to utf-8 for Windows
Diffstat (limited to 'src')
-rw-r--r--src/leap/app.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/app.py b/src/leap/app.py
index 14d3c69c..7cf78dc9 100644
--- a/src/leap/app.py
+++ b/src/leap/app.py
@@ -27,6 +27,10 @@ from leap.util import leap_argparse
from leap.gui import locale_rc
from leap.gui.mainwindow import MainWindow
+import codecs
+codecs.register(lambda name: codecs.lookup('utf-8')
+ if name == 'cp65001' else None)
+
def sigint_handler(*args, **kwargs):
logger = kwargs.get('logger', None)