diff options
author | nakai <nakai@FreeBSD.org> | 2002-03-03 18:12:42 +0800 |
---|---|---|
committer | nakai <nakai@FreeBSD.org> | 2002-03-03 18:12:42 +0800 |
commit | 39b78dd197f36916d3c6661eaec4837e800d4c48 (patch) | |
tree | 5615f647d0b151fb7964d9d3ae635f4ef9d66abc /math | |
parent | 51a19cf26ad5e58a1a441c8b44c331f8e7e06aba (diff) | |
download | freebsd-ports-gnome-39b78dd197f36916d3c6661eaec4837e800d4c48.tar.gz freebsd-ports-gnome-39b78dd197f36916d3c6661eaec4837e800d4c48.tar.zst freebsd-ports-gnome-39b78dd197f36916d3c6661eaec4837e800d4c48.zip |
Update stf-parse.c patch not to break multibyte fix
Diffstat (limited to 'math')
-rw-r--r-- | math/gnumeric/Makefile | 1 | ||||
-rw-r--r-- | math/gnumeric/files/patch-src::stf-parse.c | 43 | ||||
-rw-r--r-- | math/gnumeric2/Makefile | 1 | ||||
-rw-r--r-- | math/gnumeric2/files/patch-src::stf-parse.c | 43 |
4 files changed, 20 insertions, 68 deletions
diff --git a/math/gnumeric/Makefile b/math/gnumeric/Makefile index 4d6a1f333a1b..db58961dc952 100644 --- a/math/gnumeric/Makefile +++ b/math/gnumeric/Makefile @@ -7,6 +7,7 @@ PORTNAME= gnumeric PORTVERSION= 1.0.4 +PORTREVISION= 1 CATEGORIES?= math gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= stable/sources/gnumeric diff --git a/math/gnumeric/files/patch-src::stf-parse.c b/math/gnumeric/files/patch-src::stf-parse.c index b0610997e852..b45569925e68 100644 --- a/math/gnumeric/files/patch-src::stf-parse.c +++ b/math/gnumeric/files/patch-src::stf-parse.c @@ -1,37 +1,12 @@ - -$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)) +--- src/stf-parse.c.orig Fri Mar 1 21:03:09 2002 ++++ src/stf-parse.c Fri Mar 1 21:03:17 2002 +@@ -870,8 +870,7 @@ + if (len == -1) return (char *)s; -- if (len > 1) { + 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; ++ if (mbstowcs (&wstr, s, 1) == 1) + return (char *)s; + s += len; + } else { diff --git a/math/gnumeric2/Makefile b/math/gnumeric2/Makefile index 4d6a1f333a1b..db58961dc952 100644 --- a/math/gnumeric2/Makefile +++ b/math/gnumeric2/Makefile @@ -7,6 +7,7 @@ PORTNAME= gnumeric PORTVERSION= 1.0.4 +PORTREVISION= 1 CATEGORIES?= math gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= stable/sources/gnumeric diff --git a/math/gnumeric2/files/patch-src::stf-parse.c b/math/gnumeric2/files/patch-src::stf-parse.c index b0610997e852..b45569925e68 100644 --- a/math/gnumeric2/files/patch-src::stf-parse.c +++ b/math/gnumeric2/files/patch-src::stf-parse.c @@ -1,37 +1,12 @@ - -$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)) +--- src/stf-parse.c.orig Fri Mar 1 21:03:09 2002 ++++ src/stf-parse.c Fri Mar 1 21:03:17 2002 +@@ -870,8 +870,7 @@ + if (len == -1) return (char *)s; -- if (len > 1) { + 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; ++ if (mbstowcs (&wstr, s, 1) == 1) + return (char *)s; + s += len; + } else { |