Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-129

[configuration] Comma separation in Strings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1
    • None
    • None
    • None
    • Operating System: other
      Platform: Other

    • 35704

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jplanz@c-lab.de Jakob
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: