[PATCH] windows-nat: Decode system error numbers

Eli Zaretskii eliz@gnu.org
Wed Nov 9 17:03:00 GMT 2011


> From: Pedro Alves <pedro@codesourcery.com>
> Date: Wed, 9 Nov 2011 16:58:00 +0000
> Cc: "Maciej W. Rozycki" <macro@codesourcery.com>
> 
> > Will this DTRT with Cygwin, which AFAIK wants the wide versions of the
> > APIs?  Is, for example, "char buf[1025];" appropriate in that case?
> 
> Yeah, if UNICODE is defined, FormatMessage maps to FormatMessageW and 
> buf will be filled with a wide string, though I'm not sure
> if __USEWIDE implies UNICODE.

But buf[] should be TCHAR then, shouldn't it?



More information about the Gdb-patches mailing list