Re: UTF-8 stdio in `gdb --interpreter=mi`?

Eli Zaretskii <eliz-mXXj517/[email protected]> Mon, 11 May 2020 19:05:27 +0300
Newsgroups gmane.comp.gnu.mingw.user
Message-ID <[email protected]>
> From: Alkis Georgopoulos <[email protected]>
> Date: Mon, 11 May 2020 18:13:39 +0300
> 
> Is there any way to tell gdb that the mi commands it receives are in UTF-8?
> If not, can it be implemented, even with some command line flag if 
> necessary?

First, I don't think this is the right place for these questions.  You
should be asking this on the GDB mailing list, [email protected].

More to the point, you are not talking about commands, you are talking
about _file names_ encoded in UTF-8.  Right?  What you want is for GDB
to convert the file names from UTF-8 to either ANSI or (better)
UTF-16, and then use the result in the corresponding file I/O API.

There's no such feature in GDB, AFAIK.  GDB assumes that filenames it
gets in the commands are in the same encoding as the local file names,
and for Windows this means the current ANSI codepage.

(IMNSHO, it is quite silly of VSCode to use UTF-8 on Windows, since
kits developers must know that UTF-8 is not supported well by
Windows.  But that's me.)

_______________________________________________
MinGW-Users mailing list
[email protected]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe