"gpg --export" should export LANG=C.UTF-8 to be safe.

This commit is contained in:
Tom Limoncelli
2017-05-29 19:39:01 -04:00
parent e99e9056ad
commit 9ee69f7f5a

View File

@@ -199,6 +199,7 @@ function prepare_keychain() {
# Works with gpg 2.0 and 2.1 # Works with gpg 2.0 and 2.1
# NB: We must export the keys to a format that can be imported. # NB: We must export the keys to a format that can be imported.
make_self_deleting_tempfile keyringasc make_self_deleting_tempfile keyringasc
export LANG="C.UTF-8"
$GPG --export --keyring "$(get_pubring_path)" >"$keyringasc" $GPG --export --keyring "$(get_pubring_path)" >"$keyringasc"
$GPG --import "$keyringasc" $GPG --import "$keyringasc"
echo '========== Importing keychain: DONE' >&2 echo '========== Importing keychain: DONE' >&2