Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 90552 invoked from network); 2 Nov 2007 18:16:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Nov 2007 18:16:11 -0000 Received: (qmail 53716 invoked by uid 500); 2 Nov 2007 18:15:59 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 53699 invoked by uid 500); 2 Nov 2007 18:15:59 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 53688 invoked by uid 99); 2 Nov 2007 18:15:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Nov 2007 11:15:59 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Nov 2007 18:16:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AA5F5714204 for ; Fri, 2 Nov 2007 11:15:50 -0700 (PDT) Message-ID: <16739205.1194027350695.JavaMail.jira@brutus> Date: Fri, 2 Nov 2007 11:15:50 -0700 (PDT) From: "Farid Zaripov (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Created: (STDCXX-640) std::num_get::do_get() parses no more than 128 characters MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org std::num_get::do_get() parses no more than 128 characters --------------------------------------------------------- Key: STDCXX-640 URL: https://issues.apache.org/jira/browse/STDCXX-640 Project: C++ Standard Library Issue Type: Bug Components: 22. Localization Affects Versions: 4.2, 4.1.4, 4.1.3, 4.1.2 Environment: All Reporter: Farid Zaripov Priority: Minor The following program fails on assert. #include #include #include int main () { typedef std::num_get NumGet; typedef std::istreambuf_iterator Iter; std::locale loc; for (unsigned i = 0; i < 10000; ++i) { std::string s (i, '0'); s.push_back ('1'); std::istringstream is (s); std::ios::iostate state = std::ios::goodbit; long val = 0; std::use_facet (loc).get (Iter (is), Iter (), is, state, val); assert (1 == val && std::ios::eofbit == state); } return 0; } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.