Skip Menu |

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

Report information
The Basics
Id: 79636
Status: rejected
Priority: 0/
Queue: Text-CSV

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

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



Subject: Fails on files with UTF-8 BOM
I was getting a "2034 EIF - Loose unescaped quote" error, the cause of which turned out the be the UTF-8 BOM \x{feff} at the start of the file. There are several BOMs which should probably be addressed as you provide the getline method that requires a file handled. I'm not a C programmer, so unfortunately no patch from me. Lyle
Would you upload a sample code and file? On 2012-9月-13 木 20:14:33, COSMICNET wrote: Show quoted text
> I was getting a "2034 EIF - Loose unescaped quote" error, the cause of > which turned out the be the UTF-8 BOM \x{feff} at the start of the file. > There are several BOMs which should probably be addressed as you provide > the getline method that requires a file handled. > I'm not a C programmer, so unfortunately no patch from me. > > > Lyle
On Fri Sep 14 09:14:33 2012, COSMICNET wrote: Show quoted text
> I was getting a "2034 EIF - Loose unescaped quote" error, the cause of > which turned out the be the UTF-8 BOM \x{feff} at the start of the file. > There are several BOMs which should probably be addressed as you provide > the getline method that requires a file handled. > I'm not a C programmer, so unfortunately no patch from me. > > > Lyle
Because it's not Text::CSV/Text::CSV_XS that opens a file, and BOM is certainly something irrelevant to CSV, I don't think this is our issue. You might probably want to use File::BOM or something similar, instead of CORE open, for better BOM handling. See also https://rt.cpan.org/Ticket/Display.html?id=48514 (rejected issue for Text::CSV_XS, with some suggestion) Thanks.