aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2009-02-22 04:34:13 +0800
committergarga <garga@FreeBSD.org>2009-02-22 04:34:13 +0800
commit8eecc996ff0f2f3199f2b9f89092b3fda96ede96 (patch)
treee9b2d5c31f862d8c86c75b2b1d2387d1dc814ad5 /devel
parentbe03f190d431281675635e1701f7b9a957fda1c8 (diff)
downloadfreebsd-ports-gnome-8eecc996ff0f2f3199f2b9f89092b3fda96ede96.tar.gz
freebsd-ports-gnome-8eecc996ff0f2f3199f2b9f89092b3fda96ede96.tar.zst
freebsd-ports-gnome-8eecc996ff0f2f3199f2b9f89092b3fda96ede96.zip
- Fix following bug:
If you execute an application (e.g. mc), which uses devel/libslang2 to do screen I/O on a non-unicode terminal then the line drawing characters will appear as spaces. PR: ports/131857 Submitted by: Szalai Andras <szalai.bandi@gmail.com> Reviewed by: John E. Davis (author)
Diffstat (limited to 'devel')
-rw-r--r--devel/libslang2/Makefile3
-rw-r--r--devel/libslang2/files/patch-src__sldisply.c15
2 files changed, 17 insertions, 1 deletions
diff --git a/devel/libslang2/Makefile b/devel/libslang2/Makefile
index f87b863799aa..27ec7852cdd4 100644
--- a/devel/libslang2/Makefile
+++ b/devel/libslang2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libslang2
PORTVERSION= 2.1.4
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ftp://space.mit.edu/pub/davis/slang/v${PORTVERSION:R}/ \
ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v${PORTVERSION:R}/ \
@@ -16,7 +17,7 @@ DISTNAME= slang-${PORTVERSION}
MAINTAINER= garga@FreeBSD.org
COMMENT= Routines for rapid alpha-numeric terminal applications development
-CONFLICTS= libslang-1.*.j[0-9]
+CONFLICTS= libslang-1.*.j[0-9]
USE_BZIP2= yes
USE_LDCONFIG= yes
diff --git a/devel/libslang2/files/patch-src__sldisply.c b/devel/libslang2/files/patch-src__sldisply.c
new file mode 100644
index 000000000000..9ff0143d4aea
--- /dev/null
+++ b/devel/libslang2/files/patch-src__sldisply.c
@@ -0,0 +1,15 @@
+--- src/sldisply.c~ 2008-08-24 20:14:47.000000000 -0400
++++ src/sldisply.c 2009-02-19 09:59:08.000000000 -0500
+@@ -2233,10 +2233,9 @@
+ * this more general.
+ */
+ /* FIXME: Priority=low; */
+- if (0 == strcmp (cap, "ac"))
+- return s;
++ if (0 != strcmp (cap, "ac"))
++ s = fixup_tgetstr (s);
+
+- s = fixup_tgetstr (s);
+ #ifdef USE_TERMCAP
+ if ((s >= area_buf) && (s < area_buf + sizeof(area_buf)))
+ {