You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/07/12 15:43:57 UTC
DO NOT REPLY [Bug 35704] New: -
Comma separation in Strings
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35704>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=35704
Summary: Comma separation in Strings
Product: Commons
Version: 1.1 Final
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Configuration
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: jplanz@c-lab.de
In germany floating piont numbers are divided by a comma: 12,44 in germany would
be 12.44 in english.
So when I want to insert a floating point number into a XMLConfiguration like this:
[code]
xml.addProperty("tables.table.fields.field(-1).name", "Preis");
xml.addProperty("tables.table.fields.field.type", "single");
xml.addProperty("tables.table.fields.field.value", "11,99");
try{ xml.save(); }
catch(ConfigurationException x1){}
[/code]
it leads to this:
<name>Preis</name>
<type>single</type>
<value>11</value>
<value>99</value>
The (german) number 12,99 is split into two <value>-sections and not put into
one (<value>12,99</value>).
This also happens if you want to put for example a name and surname into one
String, divided by a comma the same problem occurs.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org