[ python-Bugs-967934 ] csv module cannot handle embedded \r

SourceForge.net noreply at sourceforge.net
Mon Jun 7 07:25:57 EDT 2004


Bugs item #967934, was opened at 2004-06-06 23:46
Message generated for change (Comment added) made by montanaro
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=967934&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Gregory Bond (gnbond)
Assigned to: Andrew McNamara (andrewmcnamara)
Summary: csv module cannot handle embedded \r

Initial Comment:
CSV module cannot handle the case of embedded \r (i.e.
carriage return) in a field.

As far as I can see, this is hard-coded into the _csv.c
file and cannot be fixed with Dialect changes.

----------------------------------------------------------------------

>Comment By: Skip Montanaro (montanaro)
Date: 2004-06-07 06:25

Message:
Logged In: YES 
user_id=44345

It certainly intersects with it somehow.  ;-)  If nothing else, it
will serve as a useful test case.


----------------------------------------------------------------------

Comment By: Andrew McNamara (andrewmcnamara)
Date: 2004-06-07 00:32

Message:
Logged In: YES 
user_id=698599

I suspect this restriction (CR appearing within a quoted 
field) is a historical accident and can be safely removed. 

----------------------------------------------------------------------

Comment By: Raymond Hettinger (rhettinger)
Date: 2004-06-07 00:02

Message:
Logged In: YES 
user_id=80475

Skip, does this coincide with your planned switchover to
universal newlines?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=967934&group_id=5470



More information about the Python-bugs-list mailing list