]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Use ISCNTRL in tui_copy_source_line
authorTom Tromey <tom@tromey.com>
Mon, 28 Sep 2020 02:30:30 +0000 (20:30 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 28 Sep 2020 02:30:32 +0000 (20:30 -0600)
commit35a982372fd63da7dd2811d6150b0c61236bbbb5
treeaaf5771dc436250216fab311889bed1e641f4f1c
parent9e820dec13ec153f5843a30afe6d1c5037405278
Use ISCNTRL in tui_copy_source_line

This changes tui_copy_source_line to use ISCNTRL.  This lets it work
more nicely with UTF-8 input.  Note that this still won't work for
stateful multi-byte encodings; for that much more work would be
required.  However, I think this patch does not make gdb any worse in
this scenario.

gdb/ChangeLog
2020-09-27  Tom Tromey  <tom@tromey.com>

PR tui/25342:
* tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
gdb/ChangeLog
gdb/tui/tui-winsource.c