Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 83347 invoked from network); 28 Feb 2008 22:28:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Feb 2008 22:28:56 -0000 Received: (qmail 44935 invoked by uid 500); 28 Feb 2008 22:28:45 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 44917 invoked by uid 500); 28 Feb 2008 22:28:45 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 44775 invoked by uid 99); 28 Feb 2008 22:28:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Feb 2008 14:28:45 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Feb 2008 22:28:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3E79B234C047 for ; Thu, 28 Feb 2008 14:27:51 -0800 (PST) Message-ID: <1937794032.1204237671254.JavaMail.jira@brutus> Date: Thu, 28 Feb 2008 14:27:51 -0800 (PST) From: "Martin Sebor (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Commented: (STDCXX-51) infinity, NaN formatted differently on different platforms MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12573493#action_12573493 ] Martin Sebor commented on STDCXX-51: ------------------------------------ Which, incidentally, would be another way to dispose of STDCXX-2. > infinity, NaN formatted differently on different platforms > ---------------------------------------------------------- > > Key: STDCXX-51 > URL: https://issues.apache.org/jira/browse/STDCXX-51 > Project: C++ Standard Library > Issue Type: Improvement > Components: 22. Localization > Affects Versions: 4.1.2 > Environment: all > Reporter: Martin Sebor > Priority: Minor > > The output of the program below is different depending on the operating system it runs on. It should be the same (preferably like that on AIX). > $ cat u.cpp && uname -sr && make u -r && ./u > #include > #include > int main () > { > std::cout << std::numeric_limits::infinity () << '\n' > << std::numeric_limits::quiet_NaN () << '\n' > << std::numeric_limits::signaling_NaN () << '\n'; > } > SunOS 5.9 > gcc -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -pthreads -D_RWSTD_USE_CONFIG -I/build/sebor/gcc-3.4.3-15s/include -I/build/sebor/dev/stdlib/include -I/build/sebor/dev/stdlib/examples/include -pedantic -nostdinc++ -g -Wall -W -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long u.cpp > gcc u.o -o u -pthreads -L/build/sebor/gcc-3.4.3-15s/lib -lstd15s -lsupc++ -lm > rm u.o > inf > nan > nan > $ uname -vs && gmake u -r && ./u > AIX 5 > xlCcore_r -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/vacpp-7.0.0.3-15D/include -I/build/sebor/dev/stdlib/include -I/build/sebor/dev/stdlib/examples/include -g -q64 -qtemplateregistry=u.ti u.cpp > xlCcore_r u.o -o u -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -liconv -brtl -q64 -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/vacpp-7.0.0.3-15D/include -I/build/sebor/dev/stdlib/include -I/build/sebor/dev/stdlib/examples/include -qtemplateregistry=u.ti -L/build/sebor/vacpp-7.0.0.3-15D/lib -lstd15D -lm > rm u.o > inf > nanq > nans -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.