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: [PATCH] windows-nat: Decode system error numbers


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


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