From 89d170c8b4af085f3a59090e472cb36b59340bdb Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Fri, 23 Sep 2005 18:49:51 +0000 Subject: [PATCH] make keys strings unicode instance strings --- src/common/GnuPG.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/GnuPG.py b/src/common/GnuPG.py index 52dd35243..ec68e4f10 100644 --- a/src/common/GnuPG.py +++ b/src/common/GnuPG.py @@ -18,6 +18,7 @@ ## from os import tmpfile +import locale USE_GPG = True @@ -167,7 +168,9 @@ else: sline = line.split(':') if (sline[0] == 'sec' and secret) or \ (sline[0] == 'pub' and not secret): - keys[sline[4][8:]] = sline[9] + # make it unicode instance + keys[sline[4][8:]] = sline[9].decode( + locale.getpreferredencoding()) return keys try: proc.wait() except IOError: pass