aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bftest.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tools/bftest.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/bftest.c b/tools/bftest.c
index c5d31eb1e..cd0eef972 100644
--- a/tools/bftest.c
+++ b/tools/bftest.c
@@ -29,6 +29,7 @@
#include "util.h"
#include "cipher.h"
+#include "i18n.h"
static void
my_usage(void)
@@ -43,6 +44,20 @@ strusage( int level )
return default_strusage(level);
}
+static void
+i18n_init(void)
+{
+ #ifdef HAVE_LIBINTL
+ #ifdef HAVE_LC_MESSAGES
+ setlocale( LC_MESSAGES, "" );
+ #else
+ setlocale( LC_ALL, "" );
+ #endif
+ bindtextdomain( PACKAGE, G10_LOCALEDIR );
+ textdomain( PACKAGE );
+ #endif
+}
+
int
main(int argc, char **argv)
{
@@ -57,6 +72,7 @@ main(int argc, char **argv)
setmode( fileno(stdout), O_BINARY );
#endif
+ i18n_init();
if( argc > 1 && !strcmp(argv[1], "-e") ) {
encode++;
argc--; argv++;