You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2015/06/09 19:44:00 UTC

[jira] [Comment Edited] (GROOVY-7461) Groovy doesn't write BOM if UTF-16 alias is used

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

Pascal Schumacher edited comment on GROOVY-7461 at 6/9/15 5:43 PM:
-------------------------------------------------------------------

We gained the automated PR linking when we moved to Apache. :)


was (Author: pascalschumacher):
We gained this when we moved to Apache. :)

> 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
>    Affects Versions: 2.4.3
>            Reporter: Keegan Witt
>            Assignee: Guillaume Laforge
>             Fix For: 2.4.4, 2.5.0-beta-1
>
>
> 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)