You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Ravi Prakash (JIRA)" <ji...@apache.org> on 2015/07/22 18:54:06 UTC

[jira] [Commented] (MAPREDUCE-5777) Support utf-8 text with BOM (byte order marker)

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

Ravi Prakash commented on MAPREDUCE-5777:
-----------------------------------------

Thanks for all the work [~zxu], [~bcwalrus], and [~kasha] . This seems to me like a backward incompatible issue and we should mark it as such. e.g. if I have a file with the BOM, a wordcount before this patch would yield a different count than after this patch. Please let me know if you disagree.

> Support utf-8 text with BOM (byte order marker)
> -----------------------------------------------
>
>                 Key: MAPREDUCE-5777
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5777
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>    Affects Versions: 0.22.0, 1.2.1, 2.2.0
>            Reporter: bc Wong
>            Assignee: zhihai xu
>             Fix For: 1.3.0, 2.5.0
>
>         Attachments: MAPREDUCE-5777.000.patch, MAPREDUCE-5777.001.patch, MAPREDUCE-5777.002.patch, MAPREDUCE-5777.003.patch, MAPREDUCE-5777.004.patch, MAPREDUCE-5777.branch1.patch
>
>
> UTF-8 text may have a BOM. TextInputFormat, KeyValueTextInputFormat and friends should recognize the BOM and not treat it as actual data.



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