From 05ea3e6d8f3acf762b9a25aba4bfdcff8e0a5fce Mon Sep 17 00:00:00 2001 From: BlackEagle Date: Fri, 30 Mar 2018 13:42:21 +0200 Subject: [PATCH 1/4] make sure temp keymap is read in correct encoding Apperantly mkexrc stores a file with cp1250 encoding, when re-reading the file and trying to use it as utf-8 you get errors. So no we read the file with the cp1250 encoding and transfer the data back to utf-8. This avoids a supressed crash when a debugger connects to vdebug and there are utf-8 chars in the configuration that get misinterpreted because the faulty exported data. fixes #337 Signed-off-by: BlackEagle --- pythonx/vdebug/util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pythonx/vdebug/util.py b/pythonx/vdebug/util.py index 2476889d..7573e21c 100644 --- a/pythonx/vdebug/util.py +++ b/pythonx/vdebug/util.py @@ -6,6 +6,7 @@ import sys import time import traceback +import codecs try: import urllib.parse as urllib except ImportError: @@ -153,7 +154,8 @@ def _store_old_map(self): keys = {v for k, v in self.keymaps.items() if k not in self.exclude} special = {"", "", "", "