Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

      Description

      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.

        Activity

        Jakob created issue -
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 35704 12342366
        Henri Yandell made changes -
        Project Commons [ 12310458 ] Commons Configuration [ 12310467 ]
        Key COM-2214 CONFIGURATION-129
        Affects Version/s 1.1 Final [ 12311652 ]
        Component/s Configuration [ 12311107 ]
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Henri Yandell made changes -
        Affects Version/s 1.1 Final [ 12311695 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Jakob
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development