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

Corinna Vinschen vinschen@redhat.com
Mon Mar 1 17:28:00 GMT 2010


On Mar  1 19:11, Eli Zaretskii wrote:
> > Date: Mon, 1 Mar 2010 11:31:25 +0100
> > From: Corinna Vinschen <vinschen@redhat.com>
> > 
> > @@ -2296,12 +2297,20 @@ void
> >  _initialize_windows_nat (void)
> >  {
> >    struct cmd_list_element *c;
> > +#ifndef __CYGWIN__
> > +  static char codepage[32];
> > +#endif
> >  
> >    init_windows_ops ();
> >  
> >  #ifdef __CYGWIN__
> >    cygwin_internal (CW_SET_DOS_FILE_WARNING, 0);
> > +  set_auto_target_charset ("UTF-8");
> > +#else
> > +  snprintf (codepage, 32, "CP%u", GetACP ());
>                          ^^
> Could this be `sizeof(codepage)' instead, please?

Yes, no problem.


Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat



More information about the Gdb-patches mailing list