This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Configuring gdb_wchar.h
> Cc: gdb-patches@sources.redhat.com
> From: Tom Tromey <tromey@redhat.com>
> Date: Wed, 15 Apr 2009 13:52:50 -0600
>
> >>>>> "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.
OK, I will look into both possibilities and see what I come up with.
Thanks.