This is the mail archive of the
mailing list for the GDB project.
Re: Configuring gdb_wchar.h
>>>>> "Eli" == Eli Zaretskii <firstname.lastname@example.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.