freebsd-ports/devel/libslang2/files/patch-src__sldisply.c
Renato Botelho 71184fc15b - 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)
2009-02-21 20:34:13 +00:00

15 lines
429 B
C

--- 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)))
{