From issues-return-82370-apmail-maven-issues-archive=maven.apache.org@maven.apache.org Tue Dec 4 13:42:41 2012 Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A3846D808 for ; Tue, 4 Dec 2012 13:42:41 +0000 (UTC) Received: (qmail 42305 invoked by uid 500); 4 Dec 2012 13:42:41 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 42268 invoked by uid 500); 4 Dec 2012 13:42:41 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 42229 invoked by uid 99); 4 Dec 2012 13:42:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Dec 2012 13:42:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [63.246.24.159] (HELO codehaus01.managed.contegix.com) (63.246.24.159) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Dec 2012 13:42:34 +0000 Received: from codehaus01 (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 8DE8DB0490 for ; Tue, 4 Dec 2012 07:42:13 -0600 (CST) Date: Tue, 4 Dec 2012 07:42:13 -0600 (CST) From: "Anders Hammar (JIRA)" To: issues@maven.apache.org Message-ID: <2043231082.18326.1354628533593.JavaMail.j2ee-jira@codehaus01.managed.contegix.com> In-Reply-To: <1490543043.18216.1354622173801.JavaMail.j2ee-jira@codehaus01.managed.contegix.com> Subject: [jira] (MRESOURCES-171) ISO8859-1 properties files get changed into UTF-8 when filtered MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 X-Virus-Checked: Checked by ClamAV on apache.org [ https://jira.codehaus.org/browse/MRESOURCES-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=314974#comment-314974 ] Anders Hammar commented on MRESOURCES-171: ------------------------------------------ {quote} Is it reasonable to expect that a filtered file that does not have any properties to filter should be identical to that file unfiltered? {quote} Not necessarily. The filtering process will take place regardless and it is a string operation which will use the encoding configured for the plugin. > ISO8859-1 properties files get changed into UTF-8 when filtered > --------------------------------------------------------------- > > Key: MRESOURCES-171 > URL: https://jira.codehaus.org/browse/MRESOURCES-171 > Project: Maven 2.x 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: > src/main/resourcestrue > 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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira