Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-834

Commit encoding is platform-dependent instead of UTF-8

    XMLWordPrintableJSON

    Details

      Description

      When doing a release with the maven-release-plugin, if you have a non-ASCII-character in your commit message (setting scmCommentPrefix to "lösung" for example), the resulting commit message has a different encoding on different operating systems. If it isn't UTF-8 (on Windows, for example), git complains with

      Warning: commit message did not conform to UTF-8.
      You may want to amend it after fixing the message, or set the config
      variable i18n.commitencoding to the encoding your project uses.
      

      AFAICS, the fix is pretty simple: Just add "UTF-8" to the call of fileWrite in GitCheckInCommand.java

        Attachments

          Activity

            People

            • Assignee:
              michael-o Michael Osipov
              Reporter:
              tgr Tobias Gruetzmacher
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: