[ 
https://issues.apache.org/jira/browse/SCM-897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16586191#comment-16586191
 ] 

Michael Osipov commented on SCM-897:
------------------------------------

Can you evaluate 
[this|https://stackoverflow.com/questions/41139067/git-log-output-encoding-issues-on-windows-10-command-prompt]?

> French accent lost and replaced by weird characters in the changelog.xml
> ------------------------------------------------------------------------
>
>                 Key: SCM-897
>                 URL: https://issues.apache.org/jira/browse/SCM-897
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-gitexe
>    Affects Versions: 1.9.4
>         Environment: JDK 8, Windows 7
>            Reporter: Jamel
>            Priority: Major
>
> Executing changelog goal of maven-changelog-plugin will result in xml file 
> with weird characters replacing french accented characters.
> You have to execute maven command on french system (in my case windows 7) to 
> get the problem.
> So far, I realized that a bug may be present in the scm git-exe plugin. it 
> seems that an UTF-8 stream was read as ISO-8859-1 (Westen Europe) which lead 
> to corrupted message.
> I fixed the bug by passing System.getProperty("file.encoding") to --encoding 
> param of "git whatchanged" command.
> {noformat}
> I added this line of code: 
> cl.createArg().setValue( "--encoding=" + System.getProperty("file.encoding"));
> to 
> org.apache.maven.scm.provider.git.gitexe.command.changelog.GitChangeLogCommand.createCommandLine(){noformat}
> the other way is to read the command output with the right encoding (I assume 
> UTF-8).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to