fix GPG encoding issues. Fixes #7988

This commit is contained in:
Yann Leboulanger 2015-03-17 22:06:36 +01:00
parent 9938da103c
commit a17ff4b45e
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ if HAVE_GPG:
class GnuPG(gnupg.GPG): class GnuPG(gnupg.GPG):
def __init__(self, use_agent=False): def __init__(self, use_agent=False):
gnupg.GPG.__init__(self) gnupg.GPG.__init__(self)
self.encoding = 'utf-8'
self.decode_errors = 'replace' self.decode_errors = 'replace'
self.passphrase = None self.passphrase = None
self.use_agent = use_agent self.use_agent = use_agent