Skip Menu |

This queue is for tickets about the Text-CSV CPAN distribution.

Report information
The Basics
Id: 109719
Status: resolved
Priority: 0/
Queue: Text-CSV

People
Owner: Nobody in particular
Requestors: KUERBIS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Text::CSV_PP and blank_is_undef: problem if File is flagged as being UTF-8-encoded
Quote from http://stackoverflow.com/a/33935166/198183: "This appears to be a bug in Text::CSV_PP (Text::CSV_XS doesn't display this symptom) The problem is that, if the line read from the file is flagged as being UTF-8-encoded, then each field split using the separator character is passed through utf8::encode even if it has previously been set to undef because the field is blank and the blank_is_undef option is enabled. That incorrectly sets it back to an empty string"
On Thu Nov 26 23:32:28 2015, KUERBIS wrote: Show quoted text
> Quote from http://stackoverflow.com/a/33935166/198183: > > "This appears to be a bug in Text::CSV_PP (Text::CSV_XS doesn't > display this symptom) > > The problem is that, if the line read from the file is flagged as > being UTF-8-encoded, then each field split using the separator > character is passed through utf8::encode even if it has previously > been set to undef because the field is blank and the blank_is_undef > option is enabled. That incorrectly sets it back to an empty string"
Thanks. Fixed in the master: https://github.com/makamaka/Text-CSV/commit/bc768840ed08e5acd691abf139cebeed86fc6ae3
On Mon Sep 05 18:24:38 2016, ISHIGAKI wrote: Show quoted text
> On Thu Nov 26 23:32:28 2015, KUERBIS wrote:
> > Quote from http://stackoverflow.com/a/33935166/198183: > > > > "This appears to be a bug in Text::CSV_PP (Text::CSV_XS doesn't > > display this symptom) > > > > The problem is that, if the line read from the file is flagged as > > being UTF-8-encoded, then each field split using the separator > > character is passed through utf8::encode even if it has previously > > been set to undef because the field is blank and the blank_is_undef > > option is enabled. That incorrectly sets it back to an empty string"
> > Thanks. Fixed in the master: https://github.com/makamaka/Text- > CSV/commit/bc768840ed08e5acd691abf139cebeed86fc6ae3
Closed as 1.91 is out. Thanks.