[ python-Patches-1767398 ] test_csv struni fixes + unicode support in _csv

"SourceForge.net" <[email protected]> Fri, 03 Aug 2007 17:11:43 -0700
Newsgroups gmane.comp.python.patches
Message-ID <[email protected]>
Patches item #1767398, was opened at 2007-08-03 19:11
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1767398&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Python 3000
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Adam Hupp (hupp)
Assigned to: Nobody/Anonymous (nobody)
Summary: test_csv struni fixes + unicode support in _csv

Initial Comment:
This patch fixes test_csv.py for the struni branch and modifies _csv.c to support unicode strings.

Changes:

 1. The test_csv.py failures caused by bytes/str conflicts have been resolved.  

 2. Uses of mkstemp have been replaced with TemporaryFile in a 'with' block. 

 3. The _csv.c module now uses unicode for string handling.   I've uncommented the unicode read tests in test_csv.py, and added tests for writing unicode content and a unicode delimiter.

All tests are now passing on my system (linux).

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

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