diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2001-12-28 08:53:02 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2001-12-28 08:53:02 +0000 |
commit | 66d07f13820750f62bda08127d18b175c46bc526 (patch) | |
tree | ef4d9ed0aff0ab2a89560e6ce169493b36c168dd /math/gnumeric2/files/patch-src::stf-parse.c | |
parent | 419874639743e0b6312edfdc00e06883bedd6dd8 (diff) |
Notes
Diffstat (limited to 'math/gnumeric2/files/patch-src::stf-parse.c')
-rw-r--r-- | math/gnumeric2/files/patch-src::stf-parse.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/math/gnumeric2/files/patch-src::stf-parse.c b/math/gnumeric2/files/patch-src::stf-parse.c new file mode 100644 index 000000000000..b0610997e852 --- /dev/null +++ b/math/gnumeric2/files/patch-src::stf-parse.c @@ -0,0 +1,37 @@ + +$FreeBSD$ + +--- src/stf-parse.c 2001/12/27 19:36:17 1.1 ++++ src/stf-parse.c 2001/12/27 19:44:24 +@@ -29,8 +29,6 @@ + #include "clipboard.h" + + #include <ctype.h> +-#include <wctype.h> +-#include <stdlib.h> + + #define WARN_TOO_MANY_ROWS _("Too many rows in data to parse: %d") + #define WARN_TOO_MANY_COLS _("Too many columns in data to parse: %d") +@@ -865,20 +863,9 @@ + wchar_t wstr; + int len; + +- for (s = data; *s != '\0';) { +- len = mblen(s, MB_CUR_MAX); +- if (len == -1) ++ for (s = data; *s != '\0'; s++) { ++ if (!isprint (*s) && !isspace (*s)) + return (char *)s; +- if (len > 1) { +- if (mbstowcs (&wstr, s, 1) == 1 && +- !iswprint (wstr) && !iswspace (wstr)) +- return (char *)s; +- s += len; +- } else { +- if (!isprint (*s) && !isspace (*s)) +- return (char *)s; +- s++; +- } + } + + return NULL; |