Configuring gdb_wchar.h

Tom Tromey tromey@redhat.com
Wed Apr 15 15:14:00 GMT 2009


>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:

Eli>     (gdb) show host-charset
Eli>     The host character set is "auto; currently UTF-8".
Eli>     (gdb) show target-charset
Eli>     The target character set is "ISO-8859-1".

Eli> This is the DJGPP port.  Is this expected?  Where are these defaults
Eli> set?

If a system has nl_langinfo(CODESET), then that is used.
Otherwise, we fall back on a built-in default.

Eli> GDB 6.8 shows ISO-8859-1 for both character sets, FWIW.

6.8 did no auto-detection at all and had ISO-8859-1 coded in.
I changed the default to UTF-8 because that is increasingly common.

Tom



More information about the Gdb-patches mailing list