Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#65 '12'34 -> 12'34

closed-rejected
Scott Conway
None
5
2011-04-08
2011-03-31
Dave Masser-Frye
No

The following test fails:
CSVParser p = new au.com.bytecode.opencsv.CSVParser(',', '\'', '\\', false, false);

String[] nextLine = null;

nextLine = p.parseLine("'12'34,5,6");
assertEquals("1234", nextLine[0]); // fails, returns 12'34

Discussion

  • Scott Conway
    Scott Conway
    2011-04-08

    • assigned_to: nobody --> sconway
    • status: open --> closed-rejected
     
  • Scott Conway
    Scott Conway
    2011-04-08

    This is working as designed. With strictQuotes off all quote characters that are not at the beginning or end (with strict quotes off the end of the field is the character before the separator) are treated as part of the field.

    Hope this helps.