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: [RFA] defs.h: Define GDB_DEFAULT_TARGET_[WIDE_]CHARSET for Cygwin and MingW builds


>>>>> "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


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