aboutsummaryrefslogtreecommitdiff
path: root/chinese/tin
diff options
context:
space:
mode:
authorClive Lin <clive@FreeBSD.org>2001-04-08 17:00:54 +0000
committerClive Lin <clive@FreeBSD.org>2001-04-08 17:00:54 +0000
commit5f10e51f9918c8a8098081f8537e9801711fc378 (patch)
tree0cbff791708b73850a6a426000f92560b69cd88f /chinese/tin
parent38aff2576965dbb79dfd24e4019f6abd816cce27 (diff)
downloadports-5f10e51f9918c8a8098081f8537e9801711fc378.tar.gz
ports-5f10e51f9918c8a8098081f8537e9801711fc378.zip
o Don't fooly assume every character is printable. Some characters
like '\n' is definitely non-printable. o Fix this by tin's misc.c way, exactly what ports/26402 submitted. o Unless we have wchar and, well, Citrus Project, imported, there's no clean way, Good Thing (tm), we can do in this case. PR: ports/26402 Submitted by: Yen-Ming Lee <leeym@bsd.ce.ntu.edu.tw>
Notes
Notes: svn path=/head/; revision=41070
Diffstat (limited to 'chinese/tin')
-rw-r--r--chinese/tin/files/patch-misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/chinese/tin/files/patch-misc.c b/chinese/tin/files/patch-misc.c
index 748a3861fe06..9757ea96c584 100644
--- a/chinese/tin/files/patch-misc.c
+++ b/chinese/tin/files/patch-misc.c
@@ -1,10 +1,10 @@
---- src/misc.c~ Thu Aug 3 21:49:22 2000
-+++ src/misc.c Wed Nov 29 08:03:36 2000
+--- src/misc.c.orig Thu Aug 3 21:49:22 2000
++++ src/misc.c Mon Apr 9 00:47:20 2001
@@ -1169,6 +1169,7 @@
my_isprint (
int c)
{
-+ return 1;
++ return (isprint(c) || (c>=0x40 && c<=0xfe));
#ifndef NO_LOCALE
/* use locale */
return isprint(c);