From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 485 invoked by alias); 5 Jun 2017 16:46:27 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 129578 invoked by uid 89); 5 Jun 2017 16:46:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail01.lgsinnovations.com Received: from mail01.lgsinnovations.com (HELO mail01.lgsinnovations.com) (184.75.234.233) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 05 Jun 2017 16:46:24 +0000 Subject: Re: [PATCH] Print sign of NaN values To: References: From: Craig Howland Message-ID: <0aab66f6-20a6-10ec-f399-2a39799ab980@LGSInnovations.com> Date: Mon, 05 Jun 2017 16:46:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LGS-EX05.lgsdirect.com (135.22.48.227) To LGS-EX01.lgsdirect.com (135.22.77.164) X-IsSubscribed: yes X-SW-Source: 2017/txt/msg00374.txt.bz2 On 06/03/2017 09:54 AM, Kito Cheng wrote: > This patch let -NaN can print the right sign like glibc do[1] :) > > Ref: > [1] https://sourceware.org/git/?p=glibc.git;a=commit;h=003c9895a89e71767ad64bafac1ca99622be2eb7 For vfwprintf.c, the two assignments to sign ought to be "sign = L'-';" (missing the L).