This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Configuring gdb_wchar.h


> Cc: gdb-patches@sources.redhat.com
> From: Tom Tromey <tromey@redhat.com>
> Date: Wed, 15 Apr 2009 09:13:53 -0600
> 
> >>>>> "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.

Would it make sense to tailor the default on specific platforms?
DJGPP does not have `nl_langinfo', and will probably never support any
character set except ASCII and the current DOS codepage.

> 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.

We need to document all that, I think.  I will give it a shot if no
one beats me to it.

Thanks.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]