Re: [RFA] defs.h: Define GDB_DEFAULT_TARGET_[WIDE_]CHARSET for Cygwin and MingW builds

Tom Tromey
2010-03-03T16:25:40Z

>>>>> "Corinna" == Corinna Vinschen <vinschen@redhat.com> writes:

Corinna> Btw., in contrast to Cygwin, native Windows hosts don't have
Corinna> the nl_langinfo function. Of course, this affects the default
Corinna> host charset. ISO-8859-1 is no sensible default, even if it
Corinna> mostly works on western language Windows systems since it's
Corinna> quite similar to CP1252. The most sensible default host
Corinna> charset for a native Windows GDB is the codepage returned by
Corinna> GetACP(), as Eli already pointed out for the target charset.

Can we just check for GetACP in configure?

Otherwise, should we use USE_WIN32API rather than _WIN32? It isn't
clear to me which is preferred.

Tom