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


On Mar  3 12:33, Daniel Jacobowitz wrote:
> On Wed, Mar 03, 2010 at 06:22:17PM +0100, Corinna Vinschen wrote:
> > As one of the Cygwin maintainers I veto the notion to handle Cygwin
> > as a Windows target in the first place.
> > 
> > It's not valid to assume that Cygwin GDB is used to debug native apps
> > and Cygwin apps are just an afterthought.  And for Cygwin binaries the
> > Windows default codepage has no meaning.  The default codeset in Cygwin
> > is UTF-8 and otherwise the same locale environment variables are used as
> > other POSIX systems.
> > 
> > Only the MingW GDB should default to the ANSI codepage.  Cygwin should
> > default to UTF-8.
> 
> I don't understand why there's so much conflict about this!
> [...]
> I don't see why we can't do it right.

I didn't say anything against doing it right.  But this:

> At this point, I think it's correct to call GetACP even for
> a Cygwin GDB.

is *not* right.


Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat


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