summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJameson Rollins <jrollins@finestructure.net>2010-10-04 01:49:47 -0400
committerJameson Rollins <jrollins@finestructure.net>2010-10-04 01:49:47 -0400
commit85e74d854ffd6ab826bd2d5a285bf30a2755dcef (patch)
treeccf2cbb4cd39402833b98b8679c5405212d7e2b3 /src
parentd3c00de6d06a49ae54b74f39c667cfab39940266 (diff)
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.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/monkeysphere2
-rwxr-xr-xsrc/monkeysphere-host2
2 files changed, 2 insertions, 2 deletions
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