You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Aaron Digulla (JIRA)" <ji...@apache.org> on 2016/01/01 22:16:39 UTC

[jira] [Comment Edited] (MRESOURCES-171) ISO8859-1 properties files get changed into UTF-8 when filtered

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

Aaron Digulla edited comment on MRESOURCES-171 at 1/1/16 9:15 PM:
------------------------------------------------------------------

[~khmarbaise] You obviously didn't understand the bug. In a nutshell: UTF-8 encoding is *illegal* for properties files. GIF files have a defined layout, properties files have one. They *look* like text files but they are text files with ISO-8859-1 encoding *everywhere*. No exceptions, not even for Maven. If you don't like that or you think that is wrong, please get in contact with Oracle and have the file format changed.

So please reopen the bug, it's real, serious, and causes data corruption.


was (Author: digulla):
[~khmarbaise] You obviously didn't understand the bug. In a nutshell: UTF-8 encoding is *illegal* for properties files. GIF files have a defined layout, properties files have one. They *look* like text files but they are text files with ISO-8859-1 encoding *everywhere*. No exceptions, not even for Maven. If you don't like that or you think that is wrong, please get in contact with Oracle and have the file format changed.

So please reopen the bug, it's a real, serious, and causes data corruption.

> ISO8859-1 properties files get changed into UTF-8 when filtered
> ---------------------------------------------------------------
>
>                 Key: MRESOURCES-171
>                 URL: https://issues.apache.org/jira/browse/MRESOURCES-171
>             Project: Maven Resources Plugin
>          Issue Type: Bug
>          Components: filtering
>            Reporter: Alex Collins
>            Priority: Minor
>         Attachments: filtering-bug.zip
>
>
> Create:
> src/main/resources/test.properties
> And add a ISO8859-1 character that is not ASCII or UTF-8, do not use \uXXXX formatting.
> When adding this line:
> <resource><directory>src/main/resources</directory><filtering>true</filtering></resource>
> Expected:
> ISO8859-1 encoded file in jar.
> Actual:
> UTF-8 encoded file in jar.
> ---
> If there are any property files (which can only be ISO8859-1) they appear to be converted into UTF-8 in the jar.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)