Thread names and non-ASCII characters

Eli Zaretskii
Thu Dec 19 18:59:00 GMT 2019

> From: Tom Tromey <>
> Cc:
> Date: Thu, 19 Dec 2019 10:22:21 -0700
> Eli> I'm asking because Windows 10 introduces a new API for setting and
> Eli> getting a thread's name, but this API wants a UTF-16 encoded string,
> Eli> so if we want to use it, we need to decide from/to what encoding to
> Eli> convert to/from UTF-16.
> Converting to the host charset is probably the thing to do.
> If the host charset is decided incorrectly, then enhancing charset.c to
> choose a better one would help in other places as well.
> convert_between_encodings can be used to do the translation.

OK, thanks for the pointers.  I hope to find some time to do this

More information about the Gdb mailing list