From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 56622 invoked by alias); 2 Nov 2015 21:17:02 -0000 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 Received: (qmail 56613 invoked by uid 89); 2 Nov 2015 21:17:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wm0-f52.google.com Received: from mail-wm0-f52.google.com (HELO mail-wm0-f52.google.com) (74.125.82.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 02 Nov 2015 21:17:00 +0000 Received: by wmff134 with SMTP id f134so69599989wmf.1 for ; Mon, 02 Nov 2015 13:16:57 -0800 (PST) X-Received: by 10.28.9.204 with SMTP id 195mr16945473wmj.88.1446499017257; Mon, 02 Nov 2015 13:16:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.227.130 with HTTP; Mon, 2 Nov 2015 13:16:17 -0800 (PST) Reply-To: fracting@gmail.com In-Reply-To: <5637CB96.4010106@redhat.com> References: <1446492970-21432-1-git-send-email-palves@redhat.com> <5637C1FA.2060708@redhat.com> <5637CB96.4010106@redhat.com> From: Qian Hong Date: Mon, 02 Nov 2015 21:17:00 -0000 Message-ID: Subject: Re: [PATCH 00/11] C++/MinGW patches To: Pedro Alves Cc: gdb-patches@sourceware.org, Iain Buclaw Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00056.txt.bz2 Hi Pedro, thanks a lot for the reply! On Tue, Nov 3, 2015 at 4:46 AM, Pedro Alves wrote: > It just looks like msvcrt.dll's printf prints using an > unexpected format? Maybe building the test program with > __USE_MINGW_ANSI_STDIO defined fixes it. Could you try that? Yes, msvcrt.dll's printf has a different format than gcc Linux. I just tried your suggestion but it doesn't make a change, later then I use __mingw_printf to write a small test case, and found MinGW also emulate msvcrt's format. #include int main() { double x = 3.40282e+038; __mingw_printf("%.5e\n", x); } $ i686-w64-mingw32-gcc test2.c -o test2.exe $ wine test2.exe # same result on Windows, just tested 3.40282e+038 -- Regards, Qian Hong - http://www.winehq.org