Lubos Kardos b1ea7e
From 258e3065687c9e6b53b6f2b6c7fa6c5694508791 Mon Sep 17 00:00:00 2001
Lubos Kardos b1ea7e
From: Lubos Kardos <lkardos@redhat.com>
Lubos Kardos b1ea7e
Date: Mon, 23 May 2016 10:19:39 +0200
Lubos Kardos b1ea7e
Subject: [PATCH] Fix signing with non-ASCII uid keys (rhbz:1243963)
Lubos Kardos b1ea7e
Lubos Kardos b1ea7e
Removed setting LC_ALL to "C" because since commit [1] the gpg program
Lubos Kardos b1ea7e
gets password by yourself from terminal so there is no sense in
Lubos Kardos b1ea7e
setting LC_ALL to "C" if the terminal settings is e. g. UTF-8. That was
Lubos Kardos b1ea7e
only confusing gpg program and it was not able to properly get and
Lubos Kardos b1ea7e
display non-ASCII characters.
Lubos Kardos b1ea7e
Lubos Kardos b1ea7e
[1] 0bce5fcf270711a2e077fba0fb7c5979ea007eb5
Lubos Kardos b1ea7e
---
Lubos Kardos b1ea7e
 sign/rpmgensig.c | 1 -
Lubos Kardos b1ea7e
 1 file changed, 1 deletion(-)
Lubos Kardos b1ea7e
Lubos Kardos b1ea7e
diff --git a/sign/rpmgensig.c b/sign/rpmgensig.c
Lubos Kardos b1ea7e
index 2310f14..321d19c 100644
Lubos Kardos b1ea7e
--- a/sign/rpmgensig.c
Lubos Kardos b1ea7e
+++ b/sign/rpmgensig.c
Lubos Kardos b1ea7e
@@ -267,7 +267,6 @@ static int runGPG(sigTarget sigt, const char *sigfile)
Lubos Kardos b1ea7e
 
Lubos Kardos b1ea7e
 	if (gpg_path && *gpg_path != '\0')
Lubos Kardos b1ea7e
 	    (void) setenv("GNUPGHOME", gpg_path, 1);
Lubos Kardos b1ea7e
-	(void) setenv("LC_ALL", "C", 1);
Lubos Kardos b1ea7e
 
Lubos Kardos b1ea7e
 	unsetenv("MALLOC_CHECK_");
Lubos Kardos b1ea7e
 	cmd = rpmExpand("%{?__gpg_sign_cmd}", NULL);
Lubos Kardos b1ea7e
-- 
Lubos Kardos b1ea7e
1.9.3
Lubos Kardos b1ea7e