diff options
author | clive <clive@FreeBSD.org> | 2001-04-09 01:00:54 +0800 |
---|---|---|
committer | clive <clive@FreeBSD.org> | 2001-04-09 01:00:54 +0800 |
commit | 8e852cb2984f1999c1690d21185adce28e0de16c (patch) | |
tree | 3e788bb8c96feb76238eb7b9086cc6fba747bb5d /chinese/tin | |
parent | b412174a05c2be20039ac00bf976c6d993170d8a (diff) | |
download | freebsd-ports-gnome-8e852cb2984f1999c1690d21185adce28e0de16c.tar.gz freebsd-ports-gnome-8e852cb2984f1999c1690d21185adce28e0de16c.tar.zst freebsd-ports-gnome-8e852cb2984f1999c1690d21185adce28e0de16c.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>
Diffstat (limited to 'chinese/tin')
-rw-r--r-- | chinese/tin/files/patch-misc.c | 6 |
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); |