Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 62899 invoked from network); 2 Nov 2007 22:18:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Nov 2007 22:18:13 -0000 Received: (qmail 43464 invoked by uid 500); 2 Nov 2007 22:18:01 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 43451 invoked by uid 500); 2 Nov 2007 22:18:01 -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 43440 invoked by uid 99); 2 Nov 2007 22:18:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Nov 2007 15:18:01 -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 22:18:32 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AF946714204 for ; Fri, 2 Nov 2007 15:17:50 -0700 (PDT) Message-ID: <22212818.1194041870715.JavaMail.jira@brutus> Date: Fri, 2 Nov 2007 15:17:50 -0700 (PDT) From: "Travis Vitek (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Commented: (STDCXX-640) std::num_get::do_get() parses no more than 128 characters In-Reply-To: <16739205.1194027350695.JavaMail.jira@brutus> 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-640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539733 ] Travis Vitek commented on STDCXX-640: ------------------------------------- I don't necessarily think this is a problem with the fixed buffer size. It seems more like a problem of not skipping unnecessary zeros. > 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.1.2, 4.1.3, 4.1.4, 4.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.