This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skip.montanaro
Recipients bobbyocean, r.david.murray, serhiy.storchaka, skip.montanaro
Date 2016-07-21.14:12:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469110354.64.0.112183759271.issue27580@psf.upfronthosting.co.za>
In-reply-to
Content
Beyond whether or not the csv module can handle NUL bytes, you might figure out if Excel will. Since the CSV format isn't some sort of "standard", its operational definition has always been what Excel will produce or consume.

I don't have Excel (not a Windows guy), but I do have Gnumeric and LibreOffice. I constructed a simple CSV file by hand which contains several NUL bytes to see what they would do. Gnumeric pops up a dialog and converts them to spaces (and then, oddly enough, doesn't think the file has been modified). LibreOffice didn't complain while loading the file, but when I saved it, it silently deleted the NULs.

I've attached the file should anyone like to experiment with other spreadsheets.
History
Date User Action Args
2016-07-21 14:12:34skip.montanarosetrecipients: + skip.montanaro, r.david.murray, serhiy.storchaka, bobbyocean
2016-07-21 14:12:34skip.montanarosetmessageid: <1469110354.64.0.112183759271.issue27580@psf.upfronthosting.co.za>
2016-07-21 14:12:34skip.montanarolinkissue27580 messages
2016-07-21 14:12:34skip.montanarocreate