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


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