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

SourceForge.net noreply at sourceforge.net
Thu Jan 13 12:34:02 CET 2005


Bugs item #967934, was opened at 2004-06-07 14:46
Message generated for change (Comment added) made by andrewmcnamara
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: Andrew McNamara (andrewmcnamara)
Date: 2005-01-13 22:34

Message:
Logged In: YES 
user_id=698599

If you're interested, I've just checked in a change to the CVS head for 
Python 2.5 that may, at least partially, fix this problem (if you try it, let me 
know how it goes).

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

Comment By: Skip Montanaro (montanaro)
Date: 2004-06-07 21: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 15: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 15: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