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 66877 - [PATCH] gnumeric dfb-importer hates spaces in data field
[PATCH] gnumeric dfb-importer hates spaces in data field
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: General
unspecified
Other other
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2001-12-13 15:18 UTC by frob
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
PATCH (505 bytes, patch)
2001-12-13 15:18 UTC, frob
none Details | Review

Description frob 2001-12-13 15:18:12 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>.
Comment 1 frob 2001-12-13 15:18:55 UTC
Created attachment 6215 [details] [review]
PATCH
Comment 2 Andreas J. Guelzow 2001-12-13 15:27:43 UTC
Shouldn't you initialize month and day to some default value just in
case sscanf only sets the year (and returns 1)?
Comment 3 Jody Goldberg 2001-12-24 08:08:48 UTC
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 ?
Comment 4 Andreas J. Guelzow 2001-12-24 18:38:41 UTC
Of course the unpatched version is really bad since it even accept EOF
as a valid return from sscanf. 
Comment 5 Jody Goldberg 2002-01-07 15:17:18 UTC
This was patched a while ago.