From: Bruno Haible Date: Mon, 18 Dec 2006 12:05:22 +0000 (+0000) Subject: Fix tgetstr argument. X-Git-Tag: v0.17~576 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebe734c8380feb930a15fa7b98ae617f02dbf956;p=thirdparty%2Fgettext.git Fix tgetstr argument. --- diff --git a/gnulib-local/ChangeLog b/gnulib-local/ChangeLog index 7456380d2..0228f8ab8 100644 --- a/gnulib-local/ChangeLog +++ b/gnulib-local/ChangeLog @@ -1,3 +1,8 @@ +2006-12-16 Bruno Haible + + * lib/term-ostream.oo.c (term_ostream_create): Fix tgetstr argument + for stream->no_color_video. + 2006-12-16 Bruno Haible * lib/term-ostream.oo.c (term_ostream_create): Don't ignore tgetent's diff --git a/gnulib-local/lib/term-ostream.oo.c b/gnulib-local/lib/term-ostream.oo.c index ed524db62..855d18433 100644 --- a/gnulib-local/lib/term-ostream.oo.c +++ b/gnulib-local/lib/term-ostream.oo.c @@ -1716,7 +1716,7 @@ term_ostream_create (int fd, const char *filename) /* Retrieve particular values depending on the terminal type. */ stream->max_colors = tgetnum ("Co"); - stream->no_color_video = tgetnum ("nc"); + stream->no_color_video = tgetnum ("NC"); stream->set_a_foreground = xstrdup0 (tgetstr ("AF", TEBP)); stream->set_foreground = xstrdup0 (tgetstr ("Sf", TEBP)); stream->set_a_background = xstrdup0 (tgetstr ("AB", TEBP));