Ticket #2529: patch2

File patch2, 0.5 KB (added by nk, 3 years ago)

any luck with this one applied?

Line 
1Index: src/common/GnuPG.py
2===================================================================
3--- src/common/GnuPG.py (revision 7239)
4+++ src/common/GnuPG.py (working copy)
5@@ -26,6 +26,8 @@
6 from os import tmpfile
7 from common import helpers
8 
9+import locale
10+
11 USE_GPG = True
12 
13 try:
14@@ -61,6 +63,7 @@
15                        resp = {}
16                        while 1:
17                                line = helpers.temp_failure_retry(child_stdout.readline)
18+                               line = line.decode(locale.getpreferredencoding())
19                                if line == "": break
20                                line = line.rstrip()
21                                if line[0:9] == '[GNUPG:] ':