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


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

Tom> If there is a way to detect the current DOS codepage, and if that is
Tom> equivalent to the notion of the host charset (I don't know), then we
Tom> could put the needed code into _initialize_charset.

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

Either way is fine by me.

libiconv also includes "libcharset", which includes a locale_charset
function to do this.  So, we could use that if it is available.  I
couldn't immediately tell when that was added to the libiconv package.

Tom


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