summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubos Kardos <lkardos@redhat.com>2016-05-23 10:19:39 +0200
committerPanu Matilainen <pmatilai@redhat.com>2016-10-20 15:32:35 +0300
commit5aea1364254779bbe9c4dd36a4e56d2ef38da9e2 (patch)
tree5ff2f5537ce403b73a0dabc09174c32f7a4e3281
parent8bc33e2697d9dc203106a89a6c684d5e64f3d3af (diff)
downloadrpm-5aea1364254779bbe9c4dd36a4e56d2ef38da9e2.tar.gz
Fix signing with non-ASCII uid keys (rhbz:1243963)
Removed setting LC_ALL to "C" because since commit [1] the gpg program gets password by yourself from terminal so there is no sense in setting LC_ALL to "C" if the terminal settings is e. g. UTF-8. That was only confusing gpg program and it was not able to properly get and display non-ASCII characters. [1] 0bce5fcf270711a2e077fba0fb7c5979ea007eb5 (cherry picked from commit 258e3065687c9e6b53b6f2b6c7fa6c5694508791)
-rw-r--r--sign/rpmgensig.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sign/rpmgensig.c b/sign/rpmgensig.c
index 9341fa824..c2b87d8ea 100644
--- a/sign/rpmgensig.c
+++ b/sign/rpmgensig.c
@@ -267,7 +267,6 @@ static int runGPG(sigTarget sigt, const char *sigfile)
if (gpg_path && *gpg_path != '\0')
(void) setenv("GNUPGHOME", gpg_path, 1);
- (void) setenv("LC_ALL", "C", 1);
unsetenv("MALLOC_CHECK_");
cmd = rpmExpand("%{?__gpg_sign_cmd}", NULL);