Make pinentry work even if LANG env var is not set (default to C, fix #188)

This commit is contained in:
Jaromil 2015-01-29 18:11:25 +01:00
parent 90e46854bc
commit 181103bc56

3
tomb
View File

@ -364,6 +364,9 @@ ask_password() {
# own fallback mechanisms. Pinentry supported: curses, gtk-2, qt4 # own fallback mechanisms. Pinentry supported: curses, gtk-2, qt4
# and x11. # and x11.
# make sure LANG is set, default to C
LANG=${LANG:-C}
if [[ "$DISPLAY" = "" ]]; then if [[ "$DISPLAY" = "" ]]; then
if _is_found "pinentry-curses"; then if _is_found "pinentry-curses"; then