4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-22 23:17:28 +08:00
Corinna Vinschen dbcfdb7153 Cygwin: console: ignore NUL byte on write in xterm emulation mode as well
A NUL byte in the output stream got accidentally not handled as IGN char
in xterm console mode.  The internal mbtowc conversion doesn't handle
embedded NUL values gracefully, it always stops converting at NUL bytes.
This broke the output of strings with embedded NUL bytes.

Fix this by always skipping IGN chars in the "normal char output loop"
and make sure not to move the cursor one position to the right, as in
legacy console mode.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2020-10-14 10:54:12 -04:00
..
2020-10-14 10:54:12 -04:00
2016-11-24 16:09:31 +01:00
2016-06-25 00:43:01 +02:00
2020-10-14 10:53:57 -04:00
2020-10-14 10:54:03 -04:00
2020-10-14 10:54:03 -04:00
2018-02-20 17:59:53 +01:00
2017-03-27 22:03:58 +01:00
2015-08-17 11:05:43 +02:00
2018-04-16 22:46:11 -05:00
2018-02-07 13:07:44 +01:00
2020-10-14 10:53:55 -04:00
2020-10-14 10:53:55 -04:00
2020-10-14 10:53:56 -04:00