maven-issues mailing list archives

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

    [ https://jira.codehaus.org/browse/SUREFIRE-1137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=362072#comment-362072
] 

Michael Osipov commented on SUREFIRE-1137:
------------------------------------------

Works as designed:

{noformat}
od -ax src/test/java/eu/jzeller/AppTest.java  | 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
0001606
{noformat}

{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.

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: 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)

Mime
View raw message