Date: Tue, 27 Dec 2005 19:54:41 GMT From: Eric Kjeldergaard <kjelderg@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/90990: [PATCH] ncurses doesn't compile with --enable-widec Message-ID: <200512271954.jBRJsfDt055413@www.freebsd.org> Resent-Message-ID: <200512272000.jBRK0JeT057703@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 90990 >Category: misc >Synopsis: [PATCH] ncurses doesn't compile with --enable-widec >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Dec 27 20:00:19 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Eric Kjeldergaard >Release: -CURRENT >Organization: >Environment: FreeBSD uninfectable 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Sat Dec 24 02:33:07 JST 2005 toor@uninfectable:/usr/obj/usr/src/sys/UNINFECTABLE i386 >Description: Well, if one wishes to enable widec support in ncurses, it is generally done by tossing --enable-widec to the configure script. This doesn't work on FreeBSD currently because we are different. It should be accompanied by a knob (I feel) that could be put in make.conf such that unicode could be used in ncurses. Attached is a patch to allow it to work. >How-To-Repeat: try to compile ncurses in base with --enable-widec added to the ./configure arguments >Fix: --- include/curses.h.orig Tue Dec 27 17:09:29 2005 +++ include/curses.h Tue Dec 27 17:33:15 2005 @@ -286,10 +286,16 @@ #endif #ifndef _WCHAR_T +#ifndef _WCHAR_T_DECLARED +#ifndef __cplusplus typedef unsigned long wchar_t; +#endif /* __cplusplus */ +#endif /* _WCHAR_T_DECLARED */ #endif /* _WCHAR_T */ #ifndef _WINT_T +#ifndef _WINT_T_DECLARED typedef long int wint_t; +#endif #endif /* _WINT_T */ #define CCHARW_MAX 5 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512271954.jBRJsfDt055413>