diff options
author | Clive Lin <clive@FreeBSD.org> | 2002-05-26 05:41:45 +0000 |
---|---|---|
committer | Clive Lin <clive@FreeBSD.org> | 2002-05-26 05:41:45 +0000 |
commit | f656988200eb101ac6bf114e65d2a33f7fd66a98 (patch) | |
tree | 876492daa19197d2dc1d3a1a708d9281896a548a | |
parent | a3fa234769063a9b0c910062cf38e88a2d475360 (diff) | |
download | ports-f656988200eb101ac6bf114e65d2a33f7fd66a98.tar.gz ports-f656988200eb101ac6bf114e65d2a33f7fd66a98.zip |
Notes
-rw-r--r-- | chinese/tin/files/patch-charset.c | 18 | ||||
-rw-r--r-- | chinese/tin/files/patch-page.c | 12 |
2 files changed, 15 insertions, 15 deletions
diff --git a/chinese/tin/files/patch-charset.c b/chinese/tin/files/patch-charset.c index fdd790d6fef9..26d37da3a4a9 100644 --- a/chinese/tin/files/patch-charset.c +++ b/chinese/tin/files/patch-charset.c @@ -1,20 +1,20 @@ ---- src/charset.c.orig Tue Jan 29 22:31:11 2002 -+++ src/charset.c Fri Mar 22 22:55:40 2002 -@@ -335,7 +335,7 @@ +--- src/charset.c.orig Wed Apr 24 18:41:18 2002 ++++ src/charset.c Sun May 26 13:33:00 2002 +@@ -333,7 +333,7 @@ - for (c = (unsigned char *)buf; *c; c++) { + for (c = (unsigned char *) buf; *c; c++) { #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) +- if (!my_isprint(*c) && (t_len = mblen((const char *) c, MAX(2,MB_CUR_MAX))) <= 1) ++ if (!my_isprint(*c) && (t_len = mblen((const char *) c, MAX(2,MB_CUR_MAX))) <= 1 && *c != 27) *c = '?'; while (--t_len > 0) c++; -@@ -363,7 +363,7 @@ +@@ -361,7 +361,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) +- if (!(my_isprint(*c) || *c == 8 || *c == 9 || *c == 10 || *c == 12 || *c == 13) && (t_len = mblen((const char *) 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((const char *) c, MAX(2,MB_CUR_MAX))) <= 1) *c = '?'; while (--t_len > 0) c++; diff --git a/chinese/tin/files/patch-page.c b/chinese/tin/files/patch-page.c index 9427128928dd..827e4f7135e0 100644 --- a/chinese/tin/files/patch-page.c +++ b/chinese/tin/files/patch-page.c @@ -1,9 +1,9 @@ ---- src/page.c.orig Mon Jul 23 18:14:53 2001 -+++ src/page.c Wed Aug 8 18:24:04 2001 -@@ -838,8 +838,8 @@ - fseek (file, curr->offset, SEEK_SET); +--- src/page.c.orig Sat Apr 27 23:04:47 2002 ++++ src/page.c Sun May 26 13:35:27 2002 +@@ -952,8 +952,8 @@ if ((line = tin_fgets (file, FALSE)) == NULL) break; /* ran out of message */ + - if ((int) strlen(line) >= cCOLS) - line[cCOLS] = '\0'; + if ((int) strlen(line) >= LEN) @@ -11,7 +11,7 @@ /* * rotN encoding on body and sig data only -@@ -858,7 +858,7 @@ +@@ -971,7 +971,7 @@ strip_line(line); #ifndef USE_CURSES @@ -20,7 +20,7 @@ #endif /* !USE_CURSES */ MoveCursor (i + scroll_region_top, 0); -@@ -1364,7 +1364,7 @@ +@@ -1492,7 +1492,7 @@ chunk += 50; pgart.rawl = my_realloc((char *) pgart.rawl, sizeof(t_lineinfo) * chunk); } |