Package: signing-party
Version: SVN trunk@602
Tags: patch

gpgparticipants sets LC_CTYPE=C.UTF-8 for gpg when printing each key.
On systems where C.UTF-8 is not available (e.g., Gentoo), the fallback
locale causes the output not to be UTF-8 encoded, even if the
overridden LC_CTYPE would have been an UTF-8 locale.

I have attached a proposed patch to this mail.

From 709e3cd8a16f167769c5f172d65886ada67e04df Mon Sep 17 00:00:00 2001
From: Stefan Huber <[email protected]>
Date: Wed, 7 May 2014 02:00:37 +0200
Subject: [PATCH] gpgparticipants: Use --display-charset utf-8

gpgparticipants sets LC_CTYPE=C.UTF-8 for gpg when printing each key.
On systems where C.UTF-8 is not available (e.g., Gentoo), the fallback
locale causes the output not to be UTF-8 encoded, even if the overridden
LC_CTYPE would have been an UTF-8 locale. Using gpg's option
--display-charset utf-8 does not suffer from this.
---
 gpgparticipants/gpgparticipants | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gpgparticipants/gpgparticipants b/gpgparticipants/gpgparticipants
index abbd570..6d5bd73 100755
--- a/gpgparticipants/gpgparticipants
+++ b/gpgparticipants/gpgparticipants
@@ -149,7 +149,7 @@ cat $input | \
 while read i; do
     k=$(($k+1));
     printf "\n%03d  [ ] Fingerprint OK        [ ] ID OK\n" $k;
-	LC_CTYPE=C.UTF-8 gpg $options --fingerprint --list-keys -- $i \
+	gpg $options --display-charset utf-8 --fingerprint --list-keys -- $i \
 		| grep -ve "^sub" -e '^uid *\[jpeg image of size ';
 	echo "_______________________________________________________________________________"
 done
-- 
1.8.5.5

Attachment: signature.asc
Description: Digital signature

Reply via email to