[PATCH 4/4] gdb/python: handle non utf-8 characters when source highlighting
Tom Tromey
tom@tromey.com
Tue Jan 11 19:24:06 GMT 2022
>>>>> "Andrew" == Andrew Burgess via Gdb-patches <gdb-patches@sourceware.org> writes:
Andrew> We could try and make GDB smarter when it comes to converting C
Andrew> strings into Python Unicode objects; this would probably require us to
Andrew> just try a couple of different encoding schemes rather than just
Andrew> giving up after utf-8.
Perhaps it should be using the host charset here.
Anyway, FWIW, I think this patch looks reasonable.
Tom
More information about the Gdb-patches
mailing list