From issues-return-599-apmail-stdcxx-issues-archive=stdcxx.apache.org@stdcxx.apache.org Sun Mar 16 00:02:15 2008 Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 83448 invoked from network); 16 Mar 2008 00:02:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Mar 2008 00:02:15 -0000 Received: (qmail 36243 invoked by uid 500); 16 Mar 2008 00:02:13 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 36221 invoked by uid 500); 16 Mar 2008 00:02:12 -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 36212 invoked by uid 99); 16 Mar 2008 00:02:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Mar 2008 17:02:12 -0700 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; Sun, 16 Mar 2008 00:01:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1221C234C099 for ; Sat, 15 Mar 2008 17:00:27 -0700 (PDT) Message-ID: <1549224827.1205625627067.JavaMail.jira@brutus> Date: Sat, 15 Mar 2008 17:00:27 -0700 (PDT) From: "Martin Sebor (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Created: (STDCXX-767) [LVS _222612Y41] errors on std::money_get extracting space MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [LVS _222612Y41] errors on std::money_get extracting space ---------------------------------------------------------- Key: STDCXX-767 URL: https://issues.apache.org/jira/browse/STDCXX-767 Project: C++ Standard Library Issue Type: Bug Components: 22. Localization Affects Versions: 4.2.0, 4.1.4, 4.1.3, 4.1.2 Reporter: Martin Sebor Priority: Minor The Plum Hall test lvs07a/conform/t228.dir/_222612Y41.cpp that exercises the {{std::money_get}} facet fails at runtime with the following errors: {noformat} $ ./_222612Y41 ***** Reached first test ***** ERROR in _222612Y41.cpp at line 85: "" != "-12345678901234" ERROR in _222612Y41.cpp at line 88: (49) != (121) #FAILED: _222612Y41 (><) ***** 4 individual successful items in _222612Y41 ***** ***** 0 successful test cases in _222612Y41 ***** ***** 1 error detected in _222612Y41 ***** ***** 0 skipped sections in _222612Y41 ***** {noformat} The expects whitespace to be optional where the {{money_base::space}} specifier appears in the pattern format. According to [locale.money.get.virtuals] para. 2: {quote} Where space or none appears in the format pattern, except at the end, optional white space (as recognized by ct.is) is consumed after any required space. {quote} We interpret this to mean that: * where money_base::space appears in the format at least one space is required, and * where money_base::none appears space is allowed but not required but other interpretations may be plausible. Clearly Plum Hall must read it differently. Seems like an issue in the standard. I've posted a question to [mailto:c++std-lib@accu.org] to get a clarification. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.