Subject: | Space stripped from middle of field value with allow_whitespace and allow_loose_quotes |
Consider the following two examples where Text::CSV_PP does what I expected from the docs but Text::CSV_XS strips an internal space in the field value:
$ PERL_TEXT_CSV=Text::CSV_PP perl -MText::CSV -E 'say $_->[0] for Text::CSV->new({ allow_loose_quotes => 1, allow_whitespace => 1, escape_char => "\\" })->getline(\*STDIN)' <<<'"foo "bar" baz"'
foo "bar" baz
$ PERL_TEXT_CSV=Text::CSV_XS perl -MText::CSV -E 'say $_->[0] for Text::CSV->new({ allow_loose_quotes => 1, allow_whitespace => 1, escape_char => "\\" })->getline(\*STDIN)' <<<'"foo "bar" baz"'
foo "bar"baz