Return-Path: Delivered-To: apmail-poi-dev-archive@www.apache.org Received: (qmail 51441 invoked from network); 11 Jun 2009 11:45:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jun 2009 11:45:20 -0000 Received: (qmail 98503 invoked by uid 500); 11 Jun 2009 11:45:31 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 98438 invoked by uid 500); 11 Jun 2009 11:45:31 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 98426 invoked by uid 99); 11 Jun 2009 11:45:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2009 11:45:31 +0000 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, 11 Jun 2009 11:45:28 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 07195234C046; Thu, 11 Jun 2009 04:45:07 -0700 (PDT) From: bugzilla@apache.org To: dev@poi.apache.org Subject: DO NOT REPLY [Bug 47282] The data format string is incorrect for Accounting style X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: HSSF X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jimmy422@rediffmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status In-Reply-To: References: Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Message-Id: <20090611114507.07195234C046@brutus.apache.org> Date: Thu, 11 Jun 2009 04:45:07 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=47282 jimmy422@rediffmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW --- Comment #9 from jimmy422@rediffmail.com 2009-06-11 04:45:02 PST --- (In reply to comment #8) > (In reply to comment #7) > > The parsing logic is written as per the Excel formats which has the space. > > Which parsing logic? Excel's? POI's? Have you written your own parsing logic? > If so, is it easy enough to share a small part of that code which exposes the > bug? Vijayendra - The parsing logic is written externally. No Excel's or POI's parsing logic is used. I cannot disclose the code, since it is complex and huge. > > > > > As Michael Zalewski > > (https://issues.apache.org/bugzilla/show_bug.cgi?id=47282#c2) > > pointed correctly, after parsing as per current format string in POI, > > it gives the value as #0.00 at my end. > > 'it gives' - which app are you talking about? Probably not Excel, because > Excel would actually give a result of #,0.00. Vijayendra - The custom application > > > > > If the space is removed while debugging, it parses the currencies as perfectly. > > I guess you mean 'If the space is *added* while debugging...' Vijayendra - Yeah. Sorry. If space *added*. > > > > > The standard formats does have space after * and I think POI should follow the > > same. > > POI *will* be changed to match Excel. That was never in question. Instead, > please help us understand the reasoning behind the change. To summarize the logic, it parse the format string and tries to collect various formats (represented by custom java classes) in sequence, which later helps in formatting the value. The logic is written as per the standard formats. So cannot change it for a single value. So while parsing the string, if the space is not found, it makes the formatting messy. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org