diff options
author | Clive Lin <clive@FreeBSD.org> | 2001-04-08 17:00:54 +0000 |
---|---|---|
committer | Clive Lin <clive@FreeBSD.org> | 2001-04-08 17:00:54 +0000 |
commit | 5f10e51f9918c8a8098081f8537e9801711fc378 (patch) | |
tree | 0cbff791708b73850a6a426000f92560b69cd88f /chinese/tin | |
parent | Add mhc-xemacs21-mule. (diff) |
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.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); |