[
https://jira.codehaus.org/browse/SUREFIRE-1137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=362069#comment-362069
]
Michael Osipov commented on SUREFIRE-1137:
------------------------------------------
Works as designed:
{noformat}
-------------------------------------------------------
T E S T S
-------------------------------------------------------
[DEBUG] boot classpath:
/net/home/osipovmi/.m2/repository/org/apache/maven/surefire/surefire-booter/2.18/surefire-booter-2.18.jar
/net/home/osipovmi/.m2/repository/org/apache/maven/surefire/surefire-api/2.18/surefire-api-2.18.jar
/.amd_mnt/blnn728x/home/osipovmi/Projekte/surefire-test/target/test-classes
/.amd_mnt/blnn728x/home/osipovmi/Projekte/surefire-test/target/classes
/net/home/osipovmi/.m2/repository/junit/junit/4.11/junit-4.11.jar
/net/home/osipovmi/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
/net/home/osipovmi/.m2/repository/org/apache/maven/surefire/surefire-junit4/2.18/surefire-junit4-2.18.jar
[DEBUG] boot(compact) classpath: surefire-booter-2.18.jar
surefire-api-2.18.jar test-classes classes junit-4.11.jar
hamcrest-core-1.3.jar surefire-junit4-2.18.jar
Forking command line: /bin/sh -c cd
/.amd_mnt/blnn728x/home/osipovmi/Projekte/surefire-test &&
/usr/local/openjdk7/jre/bin/java -jar
/.amd_mnt/blnn728x/home/osipovmi/Projekte/surefire-test/target/surefire/surefirebooter4888507445702957041.jar
/.amd_mnt/blnn728x/home/osipovmi/Projekte/surefire-test/target/surefire/surefire7406431960271983323tmp
/.amd_mnt/blnn728x/home/osipovmi/Projekte/surefire-test/target/surefire/surefire_0388931509597362855tmp
Running eu.jzeller.AppTest
Umlaute: öäüß
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec <<<
FAILURE! - in eu.jzeller.AppTest
Results :
Failed tests:
AppTest.testUmlauts:44 Umlaute: öäüß
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0
[ERROR] There are test failures.
Please refer to
/.amd_mnt/blnn728x/home/osipovmi/Projekte/surefire-test/target/surefire-reports
for the individual test results.
{noformat}
on
{noformat}
$ mvn -version
Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e;
2014-06-17T15:51:42+02:00)
Maven home: /usr/local/apache-maven
Java version: 1.7.0_71, vendor: Oracle Corporation
Java home: /usr/local/openjdk7/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "freebsd", version: "9.3-stable", arch: "i386", family: "unix"
{noformat}
I have removed
{{<argLine>-Dfile.encoding=$\{project.build.sourceEncoding\}</argLine>}}
because this does not solve the problem and won't. The Java compiler correcly
reads the non-standard file and compiles it. {{java AppTest}} works here fine
with UTF-8 als {{locale}}.
I can try to retry on Linux but the result will probably the same.
> Problem with Umlauts in stdout
> ------------------------------
>
> Key: SUREFIRE-1137
> URL: https://jira.codehaus.org/browse/SUREFIRE-1137
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.18
> Environment: Linux
> Reporter: Jürgen Zeller
> Assignee: Andreas Gudian
> Attachments: surefire-test.zip
>
>
> When using Cp1252 as file encoding, the generated Surefire stdout report
> contains invalid characters when run on Linux. When running the same test on
> Windows, everything is fine.
> A simular Problem was reported in SUREFIRE-998
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)