diff options
author | ache <ache@FreeBSD.org> | 2002-03-14 06:33:40 +0800 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2002-03-14 06:33:40 +0800 |
commit | e9c9a96002fdfca29ce73a4e473c426616c547c2 (patch) | |
tree | b69acd4a3aebb96bb6801eafaf9f9b1971ebc803 /misc | |
parent | 949d3c1236c13203b6a5c18ea3d8cc0760eaee30 (diff) | |
download | freebsd-ports-gnome-e9c9a96002fdfca29ce73a4e473c426616c547c2.tar.gz freebsd-ports-gnome-e9c9a96002fdfca29ce73a4e473c426616c547c2.tar.zst freebsd-ports-gnome-e9c9a96002fdfca29ce73a4e473c426616c547c2.zip |
Fixes a bug regarding the `(def)encoding' directive that NUL characters are all
discarded if you use it.
Submitted by: "Akinori MUSHA" <knu@iDaemons.org>
Obtained from: Michael Schroeder
Diffstat (limited to 'misc')
-rw-r--r-- | misc/screen/Makefile | 1 | ||||
-rw-r--r-- | misc/screen/files/patch-ah | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/misc/screen/Makefile b/misc/screen/Makefile index 41004a26c86f..b5ce9b7fb03e 100644 --- a/misc/screen/Makefile +++ b/misc/screen/Makefile @@ -7,6 +7,7 @@ PORTNAME= screen PORTVERSION= 3.9.11 +PORTREVISION= 1 CATEGORIES= misc MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \ ${MASTER_SITE_GNU} diff --git a/misc/screen/files/patch-ah b/misc/screen/files/patch-ah new file mode 100644 index 000000000000..a63bd227918b --- /dev/null +++ b/misc/screen/files/patch-ah @@ -0,0 +1,49 @@ +--- ./display.c.orig Fri Feb 22 12:56:57 2002 ++++ ./display.c Fri Feb 22 13:02:10 2002 +@@ -3371,7 +3371,7 @@ + { + int font = 0; + j += EncodeChar(buf2 + j, c, D_forecv->c_layer->l_encoding, &font); +- j += EncodeChar(buf2 + j, 0, D_forecv->c_layer->l_encoding, &font); ++ j += EncodeChar(buf2 + j, -1, D_forecv->c_layer->l_encoding, &font); + } + else + j += EncodeChar(buf2 + j, c, D_forecv->c_layer->l_encoding, 0); +--- ./encoding.c.orig Fri Feb 22 12:57:46 2002 ++++ ./encoding.c Fri Feb 22 13:01:30 2002 +@@ -1032,7 +1032,7 @@ + int t, f, l; + + debug2("Encoding char %02x for encoding %d\n", c, encoding); +- if (c == 0 && fontp) ++ if (c == -1 && fontp) + { + if (*fontp == 0) + return 0; +@@ -1297,7 +1297,7 @@ + continue; + j += EncodeChar(tbuf ? (char *)tbuf + j : 0, c, tenc, &font); + } +- j += EncodeChar(tbuf ? (char *)tbuf + j : 0, 0, tenc, &font); ++ j += EncodeChar(tbuf ? (char *)tbuf + j : 0, -1, tenc, &font); + return j; + } + +@@ -1456,7 +1456,7 @@ + int *fontp; + { + int f, l; +- f = c >> 16; ++ f = (c == -1) ? 0 : c >> 16; + l = 0; + if (fontp && f != *fontp) + { +@@ -1486,7 +1486,7 @@ + l += 3; + } + } +- if (c == 0) ++ if (c == -1) + return l; + if (c & 0xff00) + { |