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

Corinna Vinschen
2010-03-02T18:28:22Z

On Mar 2 19:22, Corinna Vinschen wrote:
> On Mar 2 10:58, Tom Tromey wrote:
> > >>>>> "Daniel" == Daniel Jacobowitz <dan@codesourcery.com> writes:
> >
> > >> Personally, I think that, given the existing nl_langinfo code (and
> > >> worse, Solaris hack) in _initialize_charset, it would be fine to add
> > >> some Cygwin change here. However, I won't approve a patch like that
> > >> over Daniel's objections.
> >
> > Daniel> I don't mind hacks in general. I do mind hacks that are going to
> > Daniel> break my currently working builds. If you build an i686-mingw32
> > Daniel> to arm-linux debugger, and suddenly that defaults to UTF-16 instead of
> > Daniel> UCS-4, then I've got a problem.
> >
> > Yes, I see what you mean. Sorry for being so dense.
> >
> > Additionally, you're currently exposed to this scenario in the situation
> > where Corinna decides to fix the problem by implementing
> > nl_langinfo(CODESET) in Cygwin ;-)
>
> nl_langinfo(CODESET) exists in Cygwin.

...but that doesn't fix the wide char problem. UTF-32 just doesn't
work on Windows/Cygwin.

Corinna

--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat