Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 10358 invoked from network); 30 Jan 2011 18:40:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jan 2011 18:40:06 -0000 Received: (qmail 92416 invoked by uid 500); 30 Jan 2011 18:40:06 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 92291 invoked by uid 500); 30 Jan 2011 18:40:05 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 92283 invoked by uid 99); 30 Jan 2011 18:40:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Jan 2011 18:40:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Jan 2011 18:40:04 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0UIdiGt004374 for ; Sun, 30 Jan 2011 18:39:44 GMT Message-ID: <194864.295921296412784280.JavaMail.jira@thor> Date: Sun, 30 Jan 2011 13:39:44 -0500 (EST) From: "Stevo Slavic (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (LANG-674) NumberUtils and decimal point characte In-Reply-To: <15092063.290961296359083796.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LANG-674?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D129886= 29#action_12988629 ]=20 Stevo Slavic commented on LANG-674: ----------------------------------- With plain Java I can parse String number representations with either dot o= r comma as decimal point character depending on locale, but not with common= s-lang 2.6 lang.math API. See java.text.NumberFormat, java.text.DecimalForm= atSymbols.decimalSeparator. E.g. NumberFormat.getNumberInstance(Locale.US).parse(sPrice) will properly handle price string with dot as decimal point character for U= S locale while NumberFormat.getNumberInstance(new Locale("nl")).parse(sPrice); will properly handle price string with command as decimal point character f= or Dutch locale. > NumberUtils and decimal point characte > -------------------------------------- > > Key: LANG-674 > URL: https://issues.apache.org/jira/browse/LANG-674 > Project: Commons Lang > Issue Type: Bug > Components: lang.math.* > Reporter: Henri Yandell > Fix For: 3.1 > > > Stevo Slavi=C4=87 reports on commons-user: > Is there any valid reason why '.' is hardcoded as decimal point > character in lang.math.NumberUtils, commons-lang (2.6) ? Shouldn't > this be locale dependent? --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.