]> git.ipfire.org Git - thirdparty/gettext.git/commit
libtextstyle: Avoid crashing the terminal emulator when using ncurses.
authorBruno Haible <bruno@clisp.org>
Wed, 28 Feb 2024 22:15:35 +0000 (23:15 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 28 Feb 2024 22:15:35 +0000 (23:15 +0100)
commit4a66b793721ec4f111b8764b984d407468c1be56
treee8124ea1a2a3546aeb305e7c44bcd65c89b7ff02
parent38ac75826b48ca9b584f924302f0049bdf0b570f
libtextstyle: Avoid crashing the terminal emulator when using ncurses.

Reported by Adriaan de Groot <adridg@freebsd.org> in
<https://lists.gnu.org/archive/html/bug-gettext/2021-12/msg00023.html>.
Long explanation: <https://euroquis.nl/freebsd/2021/11/24/bison.html>

* libtextstyle/gnulib-local/lib/term-ostream.oo.c (out_data_string,
out_data_string_unchecked): New functions.
(out_hyperlink_change): Don't use tputs on strings that are not escape
sequences.
libtextstyle/gnulib-local/lib/term-ostream.oo.c