Problem/Motivation

I have a problem with a CSV file that has CR line terminators. The CSV file is not being handled correctly and all rows are being displayed in one row; not recognizing line endings.

Steps to reproduce

Upload a CSV file with CR line terminators (MacOS).

CommentFileSizeAuthor
#2 auto-detect-line-endings-3230895-2.patch778 bytessmulvih2

Comments

smulvih2 created an issue. See original summary.

smulvih2’s picture

Status: Active » Needs review
StatusFileSize
new778 bytes

Patch fixes the issue with CR line endings. Need to set auto_detect_line_endings before fopen.

smulvih2’s picture

Tested this with both CR and CR/LF and works as expected.

jmdeleon’s picture

Status: Needs review » Reviewed & tested by the community
jmdeleon’s picture

Status: Reviewed & tested by the community » Fixed

Tested on a few other use-cases. Patch accepted. Closing.

jmdeleon’s picture

Status: Fixed » Closed (fixed)