From eeed97caa7abf5dcca4175a022e4cf270a6be03c Mon Sep 17 00:00:00 2001 From: John Darrington Date: Wed, 24 Apr 2013 18:00:09 +0200 Subject: [PATCH] Do not try to set box=unicode if the driver is not the text driver. --- src/ui/terminal/terminal-opts.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ui/terminal/terminal-opts.c b/src/ui/terminal/terminal-opts.c index 45c503eeca..da69afb508 100644 --- a/src/ui/terminal/terminal-opts.c +++ b/src/ui/terminal/terminal-opts.c @@ -319,16 +319,16 @@ term_is_utf8_xterm (void) void terminal_opts_done (struct terminal_opts *to, int argc, char *argv[]) { - if ((0 == strcmp (locale_charset (), "UTF-8")) - || - (term_is_utf8_xterm ()) ) - { - string_map_insert (&to->options, "box", "unicode"); - } - register_output_driver (to); if (!to->has_output_driver) { + if ((0 == strcmp (locale_charset (), "UTF-8")) + || + (term_is_utf8_xterm ()) ) + { + string_map_insert (&to->options, "box", "unicode"); + } + string_map_insert (&to->options, "output-file", "-"); string_map_insert (&to->options, "format", "txt"); register_output_driver (to); -- 2.30.2