commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35704] New: - Comma separation in Strings
Date Tue, 12 Jul 2005 13:43:57 GMT
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


Mime
View raw message