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 81897 - stf-parse.c compliation fails if do not HAVE_WCTYPE_H
stf-parse.c compliation fails if do not HAVE_WCTYPE_H
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Compilation
1.0.x
Other other
: Urgent normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2002-05-15 18:39 UTC by djw
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description djw 2002-05-15 18:39:47 UTC
gnumeric-1.0.6/src/stf-parse.c uses iswprint and iswspace even
when wide chars are not available.

Patch is
*** src/stf-parse.c.orig        Wed May 15 14:31:00 2002
--- src/stf-parse.c     Wed May 15 14:17:12 2002
***************
*** 873,879 ****
--- 873,884 ----
                        return (char *)s;
                if (len > 1) {
                        if (mbstowcs (&wstr, s, 1) == 1 &&
+ #ifdef HAVE_WCTYPE_H
                            !iswprint (wstr) && !iswspace (wstr))
+ #else
+                           !isprint (wstr) && !isspace (wstr))
+ #endif /* HAVE_WCTYPE_H */
+ 
                                return (char *)s;
                        s += len;
                } else {
Comment 1 Jody Goldberg 2002-05-28 14:45:47 UTC
The patch is not quite right, but something similar will go into 1.0.7
Comment 2 Jody Goldberg 2002-06-01 21:01:57 UTC
Something similar has been applied.