[Geoserver-devel] [jira] (GEOS-5312) CSV WFS output format doesn't deal with Windows newlines

Robert Coup created BugGEOS-5312
CSV WFS output format doesn’t deal with Windows newlines

Issue Type:

BugBug

Affects Versions:

2.1.x, 2.2.x

Assignee:

Andrea Aime

Components:

WFS

Created:

16/Sep/12 9:46 PM

Description:

The CSV WFS format correctly deals with embedded unix newlines (\n) in attribute data, which ensures the field is enclosed in double-quotes.

FID,geom,label,number\r\n
fid--79854fbd_139d1dd3621_-7fa7,POINT (5 4),"A long label\nwith newlines",2\r\n

When the attribute contains Windows-style newlines, the output is not quoted, which then then splits the record across two lines.

FID,geom,label,number\r\n
fid--79854fbd_139d1dd3621_-7fa7,POINT (5 4),A long label\r\nwith newlines,2\r\n

.

Pull request to follow.

Environment:

Linux

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Robert Coup

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa). For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)