Return-Path: X-Original-To: apmail-groovy-notifications-archive@minotaur.apache.org Delivered-To: apmail-groovy-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2F54617B44 for ; Tue, 9 Jun 2015 12:57:25 +0000 (UTC) Received: (qmail 32105 invoked by uid 500); 9 Jun 2015 12:57:25 -0000 Delivered-To: apmail-groovy-notifications-archive@groovy.apache.org Received: (qmail 32082 invoked by uid 500); 9 Jun 2015 12:57:25 -0000 Mailing-List: contact notifications-help@groovy.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.incubator.apache.org Delivered-To: mailing list notifications@groovy.incubator.apache.org Received: (qmail 32073 invoked by uid 99); 9 Jun 2015 12:57:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jun 2015 12:57:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 09 Jun 2015 12:55:14 +0000 Received: (qmail 31061 invoked by uid 99); 9 Jun 2015 12:57:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jun 2015 12:57:01 +0000 Date: Tue, 9 Jun 2015 12:57:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: notifications@groovy.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GROOVY-7461) Groovy doesn't write BOM if UTF-16 alias is used MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GROOVY-7461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14578843#comment-14578843 ] ASF GitHub Bot commented on GROOVY-7461: ---------------------------------------- GitHub user keeganwitt opened a pull request: https://github.com/apache/incubator-groovy/pull/36 fix for GROOVY-7461 I didn't see any unit tests for this method. Feel free to point them out if I've missed it. You can merge this pull request into a Git repository by running: $ git pull https://github.com/keeganwitt/incubator-groovy master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-groovy/pull/36.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #36 ---- commit cb623e5038f1478933afe35645a75f93ed1322a9 Author: Keegan Witt Date: 2015-06-09T12:53:07Z fix for GROOVY-7461 ---- > Groovy doesn't write BOM if UTF-16 alias is used > ------------------------------------------------ > > Key: GROOVY-7461 > URL: https://issues.apache.org/jira/browse/GROOVY-7461 > Project: Groovy > Issue Type: Bug > Components: groovy-jdk > Reporter: Keegan Witt > Assignee: Guillaume Laforge > > The {{newWriter(charset, append)}}, {{File.append(text, charset)}}, {{File.write(text, charset)}} methods all don't write the UTF-16 BOM if an alias for UTF-16 is used. For example, if the "UTF_16LE" alias for "UTF-16LE" is used, no BOM is written even though a BOM is written for the canonical name. This is because {{writeUTF16BomIfRequired(charset, stream)}} only checks for the canonical name, and not any aliases. -- This message was sent by Atlassian JIRA (v6.3.4#6332)