From 85e74d854ffd6ab826bd2d5a285bf30a2755dcef Mon Sep 17 00:00:00 2001 From: Jameson Rollins Date: Mon, 4 Oct 2010 01:49:47 -0400 Subject: use LC_ALL=C for all gpg calls This should help with internationalization differences in gpg that could cause problems. Works in tests as is, but haven't tested with odd locales. --- src/monkeysphere | 2 +- src/monkeysphere-host | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/monkeysphere b/src/monkeysphere index 1cfafb6..674114a 100755 --- a/src/monkeysphere +++ b/src/monkeysphere @@ -62,7 +62,7 @@ EOF # user gpg command to define common options gpg_user() { - gpg --no-greeting --quiet --no-tty "$@" + LC_ALL=C gpg --no-greeting --quiet --no-tty "$@" } # output the ssh fingerprint of a gpg key diff --git a/src/monkeysphere-host b/src/monkeysphere-host index 17f918c..ff56e98 100755 --- a/src/monkeysphere-host +++ b/src/monkeysphere-host @@ -71,7 +71,7 @@ EOF # function to interact with the gpg keyring gpg_host() { - GNUPGHOME="$GNUPGHOME_HOST" gpg --no-auto-check-trustdb --trust-model=always --no-greeting --quiet --no-tty "$@" + GNUPGHOME="$GNUPGHOME_HOST" LC_ALL=C gpg --no-auto-check-trustdb --trust-model=always --no-greeting --quiet --no-tty "$@" } # list the info about the a key, in colon format, to stdout -- cgit v1.2.3