maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hervé Boutemy (JIRA) <j...@apache.org>
Subject [jira] [Commented] (MNG-6320) Apparently wrong encoding of non-ascii java class filename in error messages in the maven log
Date Sat, 10 Feb 2018 11:56:00 GMT

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

Hervé Boutemy commented on MNG-6320:
------------------------------------

Jansi upgrade done to benefit from https://github.com/fusesource/jansi/pull/95
https://git-wip-us.apache.org/repos/asf?p=maven.git&a=commit&h=916839528cfc26719cb85dc74e3165095447bc97

> Apparently wrong encoding of non-ascii java class filename in error messages in the maven
log
> ---------------------------------------------------------------------------------------------
>
>                 Key: MNG-6320
>                 URL: https://issues.apache.org/jira/browse/MNG-6320
>             Project: Maven
>          Issue Type: Bug
>          Components: Logging
>    Affects Versions: 3.5.2
>         Environment: Windows 10
>            Reporter: Eugene Pliskin
>            Priority: Minor
>             Fix For: 3.5.3
>
>         Attachments: maven.3.3.9.log, maven.3.5.2.log
>
>
> Attached please find two build logs, one from maven version 3.3.9, and another from maven
version 3.5.2. Both log files were made for the same Java project on Windows 10 machine, with
"mvn compile > log" command. Java platform default encoding is UTF-8.
> One Java source file contains intentional error, which is reported in lines 433-435 of
file "maven.3.3.9.log", and in lines 437-439 of file "maven.3.5.2.log". 
> Class name is non-ascii and version 3.3.9 log appears right. But in version 3.5.2 this
same filename appears unreadable in the error message in the maven log.
> Notice that if I view the file "maven.3.5.2.log" with different encoding (cp866), then
this error message becomes readable. It looks like this non-ascii filename gets inserted into
UTF-8 encoded log file in wrong "cp866" encoding, in maven version 3.5.2.
> Still, version 3.3.9 of maven does the right thing, and the error message is readable
in UTF-8 log.



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

Mime
View raw message