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

Eli Zaretskii
2010-03-01T17:11:42Z

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

Thanks.