maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <>
Subject [jira] (SUREFIRE-1137) Problem with Umlauts in stdout
Date Fri, 30 Jan 2015 08:40:18 GMT


Michael Osipov commented on SUREFIRE-1137:

Works as designed:

od -ax src/test/java/eu/jzeller/  | tail
             7475    3a65    f620    fce4    22df    3b29    0a0d    2020
0001520   sp  sp  sp  sp  sp  sp   a   s   s   e   r   t   T   r   u   e
             2020    2020    2020    7361    6573    7472    7254    6575
0001540    (   "   U   m   l   a   u   t   e   :  sp  f6  e4  fc  df   "
             2228    6d55    616c    7475    3a65    f620    fce4    22df
0001560    ,  sp   f   a   l   s   e  sp   )   ;  cr  nl  sp  sp  sp  sp
             202c    6166    736c    2065    3b29    0a0d    2020    2020
0001600    }  cr  nl   }  cr  nl
             0d7d    7d0a    0a0d

 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
 /.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
[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
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.


$ 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"

I have removed {{<argLine>-Dfile.encoding=$\{\}</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.

Note: Please do not use the edit function in JIRA if you have non-ASCII chars in your textarea,
they will be broken. This is some bug in this JIRA.

> Problem with Umlauts in stdout
> ------------------------------
>                 Key: SUREFIRE-1137
>                 URL:
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.18
>         Environment: Linux
>            Reporter: Jürgen Zeller
>            Assignee: Andreas Gudian
>         Attachments:
> 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

View raw message