use decode_string in GnuPG

This commit is contained in:
Yann Leboulanger 2005-11-18 12:22:33 +00:00
parent 2a791af792
commit 97d1166be8
1 changed files with 1 additions and 2 deletions

View File

@ -179,8 +179,7 @@ else:
if (sline[0] == 'sec' and secret) or \
(sline[0] == 'pub' and not secret):
# make it unicode instance
keys[sline[4][8:]] = sline[9].decode(
locale.getpreferredencoding())
keys[sline[4][8:]] = helpers.decode_string(sline[9])
return keys
try: proc.wait()
except IOError: pass