changeset e89d125d0505 in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=e89d125d0505 description: call gpg with LANG=C to prevent decoding issues
diffstat:
src/common/gnupg.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 37571844b8f6 -r e89d125d0505 src/common/gnupg.py --- a/src/common/gnupg.py Sun Apr 17 20:31:19 2016 +0200 +++ b/src/common/gnupg.py Mon Apr 18 22:38:17 2016 +0200 @@ -741,8 +741,10 @@ si = STARTUPINFO() si.dwFlags = STARTF_USESHOWWINDOW si.wShowWindow = SW_HIDE + env = os.environ + env['LANG'] = 'C' return Popen(cmd, shell=False, stdin=PIPE, stdout=PIPE, stderr=PIPE, - startupinfo=si) + env=env, startupinfo=si)
def _read_response(self, stream, result): # Internal method: reads all the stderr output from GPG, taking notice