harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse Wilson (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6290) BufferedReader.readLine() breaks at EBCDIC newline, violating the spec
Date Tue, 04 Aug 2009 18:32:14 GMT
BufferedReader.readLine() breaks at EBCDIC newline, violating the spec
----------------------------------------------------------------------

                 Key: HARMONY-6290
                 URL: https://issues.apache.org/jira/browse/HARMONY-6290
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: SVN Revision: 800827
            Reporter: Jesse Wilson


The spec says that BufferedReader.readLine() considers only "\r", "\n" and "\r\n" to be line
separators. We must not permit additional separator characters. I admit that the RI's behaviour
is surprising, and incompatible with it's own Pattern and Scanner classes. But this is the
specified behaviour; the doc explicitly calls out which character sequences are used as newlines.
It does not permit additional characters to break lines. 

For users reading EBCDIC-encoded files, a better practice is to read through the files using
a Scanner. That way, the application will behave the same when executed on either Harmony
or on the RI.

#Android

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message