This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Configuring gdb_wchar.h
>>>>> "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