commit 181103bc56e67ab948f365767dbb862e6188d37f
parent 90e46854bc89700a15d61986581ebc5ca493e68d
Author: Jaromil <jaromil@dyne.org>
Date: Thu, 29 Jan 2015 18:11:25 +0100
Make pinentry work even if LANG env var is not set (default to C, fix #188)
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/tomb b/tomb
@@ -364,6 +364,9 @@ ask_password() {
# own fallback mechanisms. Pinentry supported: curses, gtk-2, qt4
# and x11.
+ # make sure LANG is set, default to C
+ LANG=${LANG:-C}
+
if [[ "$DISPLAY" = "" ]]; then
if _is_found "pinentry-curses"; then