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 12:03:57 -0600
> 
> If there is a way to detect the current DOS codepage, and if that is
> equivalent to the notion of the host charset (I don't know), then we
> could put the needed code into _initialize_charset.

There's a system call to do that, yes.  Perhaps I should just write a
limited emulation of nl_langinfo which will do the job.  That would
avoid ugly system-dependent code in charset.c.  WDYT?

> Eli> GDB 6.8 shows ISO-8859-1 for both character sets, FWIW.
> 
> Tom> 6.8 did no auto-detection at all and had ISO-8859-1 coded in.
> Tom> I changed the default to UTF-8 because that is increasingly common.
> 
> Eli> We need to document all that, I think.  I will give it a shot if no
> Eli> one beats me to it.
> 
> How about the appended?

Fine with me, thanks.


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