From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2802 invoked by alias); 9 Nov 2011 17:03:39 -0000 Received: (qmail 2792 invoked by uid 22791); 9 Nov 2011 17:03:38 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout23.012.net.il (HELO mtaout23.012.net.il) (80.179.55.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 09 Nov 2011 17:03:24 +0000 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LUE00H00KMTCJ00@a-mtaout23.012.net.il> for gdb-patches@sourceware.org; Wed, 09 Nov 2011 19:02:49 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.228.42.212]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LUE00H6BKOOAF40@a-mtaout23.012.net.il>; Wed, 09 Nov 2011 19:02:49 +0200 (IST) Date: Wed, 09 Nov 2011 17:03:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] windows-nat: Decode system error numbers In-reply-to: <201111091658.00913.pedro@codesourcery.com> To: Pedro Alves Cc: gdb-patches@sourceware.org, macro@codesourcery.com Reply-to: Eli Zaretskii Message-id: <83k479gri5.fsf@gnu.org> References: <83obwlgsc5.fsf@gnu.org> <201111091658.00913.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-11/txt/msg00236.txt.bz2 > From: Pedro Alves > Date: Wed, 9 Nov 2011 16:58:00 +0000 > Cc: "Maciej W. Rozycki" > > > 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?