You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2006/09/08 20:10:23 UTC

[jira] Commented: (HADOOP-517) readLine function of UTF8ByteArrayUtils does not handle end of line correctly

    [ http://issues.apache.org/jira/browse/HADOOP-517?page=comments#action_12433464 ] 
            
Doug Cutting commented on HADOOP-517:
-------------------------------------

Can you use the same logic for readLine() as in HADOOP-474?  Ideally we could use the same implementation even.  But I don't like the 'new PushbackInputStream()'. mark() and reset() seem better, if the input stream supports them...

> readLine function of UTF8ByteArrayUtils does not handle end of line correctly
> -----------------------------------------------------------------------------
>
>                 Key: HADOOP-517
>                 URL: http://issues.apache.org/jira/browse/HADOOP-517
>             Project: Hadoop
>          Issue Type: Bug
>         Environment: windows
>            Reporter: Hairong Kuang
>         Assigned To: Hairong Kuang
>         Attachments: eol.patch
>
>
> The readLine function does not read ahead looking for '\n' after it reads '\r'. Therefore it incorrectly generates two lines, wth the second one empty in the window platform.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira