GNOME Bugzilla – Bug 66877
[PATCH] gnumeric dfb-importer hates spaces in data field
Last modified: 2004-12-22 21:47:04 UTC
If one tries to import dbf with spaces in data field, then gnumeric generate warnings. Patch was made by Sultanov Albert <sar ufk62 ru>.
Created attachment 6215 [details] [review] PATCH
Shouldn't you initialize month and day to some default value just in case sscanf only sets the year (and returns 1)?
I do no see what this patch has to do with spaces in data fields. Date fields have a specific required format. YYYYMMDD I'll check that sscanf == 3, but > 0 does not seem useful. Can I see a test case for what you're trying to fix ?
Of course the unpatched version is really bad since it even accept EOF as a valid return from sscanf.
This was patched a while ago.