commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <>
Subject [jira] Resolved: (SANDBOX-153) Delimiter should be never recognized as whitespace
Date Tue, 01 Aug 2006 06:49:14 GMT
     [ ]

Henri Yandell resolved SANDBOX-153.

    Resolution: Fixed

Thanks Markus; the patch and unit test are both applied and will be in tonight's nightly build.

 svn ci -m "Fixing bug reported byu Markus Rogg in #SANDBOX-153. Whitespace was be
ing treated specially when it was not the delimiter. Unit test and patch applied. "
Sending        src/java/org/apache/commons/csv/
Sending        src/test/org/apache/commons/csv/
Transmitting file data ..
Committed revision 427470.

> Delimiter should be never recognized as whitespace
> --------------------------------------------------
>                 Key: SANDBOX-153
>                 URL:
>             Project: Commons Sandbox
>          Issue Type: Bug
>          Components: CSV
>            Reporter: Markus Rogg
> The CSV-Parser ignores whitespaces at the beginning of a token. If the delimiter is a
tabspace and data has no encapsulator the parser loses the empty tokens. The parser should
never recognize a delimiter as a whitespace. A possible solution for the class CSVParser is
to change the method isWhitespace(int) :
>   private boolean isWhitespace(int c) {
>     return Character.isWhitespace((char) c) && (c != strategy.getDelimiter());
>   }

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message