commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pino Silvaggio (JIRA)" <j...@apache.org>
Subject [jira] Closed: (SANDBOX-207) Line number is wrong when last line doesn't contain \n
Date Mon, 14 Jan 2008 04:17:34 GMT

     [ https://issues.apache.org/jira/browse/SANDBOX-207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pino Silvaggio closed SANDBOX-207.
----------------------------------

    Resolution: Invalid

After some thoughts it was hasty of me to report a bug for this.
It's not a bug since the getLineNumber() clearly states
it report the underlying stream line # which is ok
but as a parser it would be nice to get the
current record line #.

> Line number is wrong when last line doesn't contain \n
> ------------------------------------------------------
>
>                 Key: SANDBOX-207
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-207
>             Project: Commons Sandbox
>          Issue Type: Bug
>          Components: CSV
>            Reporter: Pino Silvaggio
>
> Line number is wrong when last line doesn't contain \n
> The line number returned is the same as the previous line
> since it has not been incremented. This is because it
> uses the ExtendedBufferReader which increments
> lines based on "\n" which is somewhat wrong...
> Refer to: http://tools.ietf.org/html/rfc4180
> It permits the last line not to have a CRLF.
> I would submit a patch for this but will it be ignored?
> Should I make time for this?

-- 
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