After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 648354 - Opening a .csv file with null characters fails silently
Opening a .csv file with null characters fails silently
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export Text
1.10.x
Other Linux
: Normal normal
: ---
Assigned To: Morten Welinder
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2011-04-21 06:40 UTC by hankin
Modified: 2011-04-22 08:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample .csv with null characters (18 bytes, text/csv)
2011-04-21 06:40 UTC, hankin
Details

Description hankin 2011-04-21 06:40:25 UTC
Created attachment 186409 [details]
sample .csv with null characters

Cannot import a file with null characters, no errors.

I am exporting from the popular surveymonkey.com service.
The bug is probably a problem with their exporter which is producing null characters.  
But it would be nice if gnumeric printed an error or something.
Comment 1 Andreas J. Guelzow 2011-04-21 14:51:31 UTC
A  .csv file with null characters? If the file contains null character then it can't be a .csv file.

(But I agree that we should present some kind of warning if we stop the import early because of a null character.)
Comment 2 Andreas J. Guelzow 2011-04-21 23:53:27 UTC
When stf_open_and_read reads the file, it marks the end of the buffer with a null. Later we consider any NULL we encounter as an end of buffer marker.
Comment 3 Andreas J. Guelzow 2011-04-22 03:05:30 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 4 hankin 2011-04-22 08:04:22 UTC
You guys are very fast!

Thanks!