mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
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)
This commit is contained in:
parent
8e9fc4b80a
commit
24e1869346
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=41358
@ -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;
|
||||
|
||||
for (c= (unsigned char *)buf; *c; c++) {
|
||||
- if (!my_isprint(*c))
|
||||
+ if (!my_isprint(*c) && *c != 27)
|
||||
*c = '?';
|
||||
}
|
||||
}
|
||||
@@ -348,7 +348,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) || *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) && (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 = '?';
|
||||
}
|
||||
}
|
||||
while (--t_len > 0)
|
||||
c++;
|
||||
@@ -364,7 +364,7 @@
|
||||
|
||||
for (c = (unsigned char *)buf; *c; c++) {
|
||||
# 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++;
|
||||
|
Loading…
Reference in New Issue
Block a user