Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-41729

Using utf-8 letters in property files

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: In Review (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      Property files for localization requires to be encoded in ISO-8859-1.
      It results difficulties in reviewing localizing pull requires such as https://github.com/jenkinsci/maven-plugin/pull/86.
      It would be nice if property files in source directories can be written in UTF-8 letters.

      There are two approaches:

      1. Encode property files when compiling.
        • maven-resources-plugin copies files in the resources directory into the target directory. It doesn't provide a feature to encode property files.
        • Though native2ascii-maven-plugin encodes property files, it is provided only as beta for long time.
          • This might mean encoding property files in compilation time isn't a standard approach.
        • maven-antrun-plugin can run native2ascii (But it feels strange approach to me).
        • This approach would cause problems when testing plugins with "mvn hpi:run".
          • As property files aren't compiled and read from source directories directly at that time.
      2. Make libraries reading property files accept UTF-8 letters.

      Actually, I'm not sure this is a good idea.
      I created this ticket and will create pull requests to request comments about this idea.

        Attachments

          Activity

          ikedam ikedam created issue -
          ikedam ikedam made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          ikedam ikedam made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          ikedam ikedam made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          ikedam ikedam made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]

            People

            Assignee:
            ikedam ikedam
            Reporter:
            ikedam ikedam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: