call gpg with LANG=C to prevent decoding issues
This commit is contained in:
parent
e585c579cb
commit
cc46d7b7d0
1 changed files with 3 additions and 1 deletions
|
@ -741,8 +741,10 @@ class GPG(object):
|
||||||
si = STARTUPINFO()
|
si = STARTUPINFO()
|
||||||
si.dwFlags = STARTF_USESHOWWINDOW
|
si.dwFlags = STARTF_USESHOWWINDOW
|
||||||
si.wShowWindow = SW_HIDE
|
si.wShowWindow = SW_HIDE
|
||||||
|
env = os.environ
|
||||||
|
env['LANG'] = 'C'
|
||||||
return Popen(cmd, shell=False, stdin=PIPE, stdout=PIPE, stderr=PIPE,
|
return Popen(cmd, shell=False, stdin=PIPE, stdout=PIPE, stderr=PIPE,
|
||||||
startupinfo=si)
|
env=env, startupinfo=si)
|
||||||
|
|
||||||
def _read_response(self, stream, result):
|
def _read_response(self, stream, result):
|
||||||
# Internal method: reads all the stderr output from GPG, taking notice
|
# Internal method: reads all the stderr output from GPG, taking notice
|
||||||
|
|
Loading…
Add table
Reference in a new issue