tMake pinentry work even if LANG env var is not set (default to C, fix #188) - tomb - the crypto undertaker
HTML git clone git://parazyd.org/tomb.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 181103bc56e67ab948f365767dbb862e6188d37f
DIR parent 90e46854bc89700a15d61986581ebc5ca493e68d
HTML 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:
M tomb | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
DIR diff --git a/tomb b/tomb
t@@ -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