summaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorclive <clive@FreeBSD.org>2001-04-08 17:00:54 +0000
committerclive <clive@FreeBSD.org>2001-04-08 17:00:54 +0000
commit8e852cb2984f1999c1690d21185adce28e0de16c (patch)
tree3e788bb8c96feb76238eb7b9086cc6fba747bb5d /chinese
parentb412174a05c2be20039ac00bf976c6d993170d8a (diff)
downloadFreeBSD-ports-8e852cb2984f1999c1690d21185adce28e0de16c.zip
FreeBSD-ports-8e852cb2984f1999c1690d21185adce28e0de16c.tar.gz
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>
Diffstat (limited to 'chinese')
-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 748a386..9757ea9 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);
OpenPOWER on IntegriCloud