aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorclive <clive@FreeBSD.org>2001-04-14 09:06:55 +0800
committerclive <clive@FreeBSD.org>2001-04-14 09:06:55 +0800
commit6ab699e3b09b8683bc468709386dc2cba877e74f (patch)
tree47be11a4df767bd5742124f5bb29e9897bcd0eae /chinese
parent3a7e917d7de843fa60def50b05624167c24b9f14 (diff)
downloadfreebsd-ports-gnome-6ab699e3b09b8683bc468709386dc2cba877e74f.tar.gz
freebsd-ports-gnome-6ab699e3b09b8683bc468709386dc2cba877e74f.tar.zst
freebsd-ports-gnome-6ab699e3b09b8683bc468709386dc2cba877e74f.zip
Resolve conflicts with the updating of news/tin to make it buildable.
It seems that tin itself now has more ability to handle MB. More inspection on chinese/tin may be required to remove obsoleted method. (I will forward this commit log to its MAINTAINER and freebsd-taiwan-chinese@maillist.tw.freebsd.org)
Diffstat (limited to 'chinese')
-rw-r--r--chinese/tin/files/patch-charset.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/chinese/tin/files/patch-charset.c b/chinese/tin/files/patch-charset.c
index fc7a8448e9ae..48aa3a1ffe47 100644
--- a/chinese/tin/files/patch-charset.c
+++ b/chinese/tin/files/patch-charset.c
@@ -1,20 +1,20 @@
---- src/charset.c.orig Mon Jul 24 21:30:22 2000
-+++ src/charset.c Sat Sep 23 14:03:14 2000
-@@ -330,7 +330,7 @@
- unsigned char *c;
+--- src/charset.c.orig Mon Jan 29 18:32:23 2001
++++ src/charset.c Sat Apr 14 08:50:15 2001
+@@ -335,7 +335,7 @@
- for (c= (unsigned char *)buf; *c; c++) {
-- if (!my_isprint(*c))
-+ if (!my_isprint(*c) && *c != 27)
+ for (c = (unsigned char *)buf; *c; c++) {
+ #ifdef ENABLE_MBLEN
+- if (!my_isprint(*c) && (t_len = mblen(c, MAX(2,MB_CUR_MAX))) <= 1)
++ if (!my_isprint(*c) && (t_len = mblen(c, MAX(2,MB_CUR_MAX))) <= 1 && *c != 27)
*c = '?';
- }
- }
-@@ -348,7 +348,7 @@
- unsigned char *c;
+ while (--t_len > 0)
+ c++;
+@@ -364,7 +364,7 @@
for (c = (unsigned char *)buf; *c; c++) {
-- if (!(my_isprint(*c) || *c == 8 || *c == 9 || *c == 10 || *c == 12 || *c == 13))
-+ if (!(my_isprint(*c) || *c == 8 || *c == 9 || *c == 10 || *c == 12 || *c == 13 || *c==27))
+ # ifdef ENABLE_MBLEN
+- if (!(my_isprint(*c) || *c == 8 || *c == 9 || *c == 10 || *c == 12 || *c == 13) && (t_len = mblen(c, MAX(2,MB_CUR_MAX))) <= 1)
++ if (!(my_isprint(*c) || *c == 8 || *c == 9 || *c == 10 || *c == 12 || *c == 13 || *c==27) && (t_len = mblen(c, MAX(2,MB_CUR_MAX))) <= 1)
*c = '?';
- }
- }
+ while (--t_len > 0)
+ c++;