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

[configuration] PropertiesConfiguration.load should default to encoding "8859_1"

    XMLWordPrintableJSON

    Details

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

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      36699

      Description

      Same issue as:

      http://issues.apache.org/bugzilla/show_bug.cgi?id=17616

      Copied from 17616

      The default load method for commons.collections.ExtendedProperties currently
      loads properties using the default JVM encoding. The default load() method
      should use "8859_1" encoding.

      Rationale:
      1) consistency: java.util.Properties.load() method always uses "8859_1"
      2) properties resources are always 8859_1, by convention.
      2) On edbcic machines, particularly IBM mainframes, the default encoding is
      Cp1047 (ebcdic), but properties files are always ASCII (ISO8859-1)
      3) This bug causes many Apache tools, such as Velocity, which uses
      commons.collections, to fail on non-ascii machines, since they distribute
      properties resources which are (correctly) in 8859-1.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              wglass@forio.com Will Glass-Husain
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: