misc/90990: [PATCH] ncurses doesn't compile with --enable-widec

Eric Kjeldergaard kjelderg at gmail.com
Tue Dec 27 12:00:26 PST 2005

>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
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 27 20:00:19 GMT 2005
>Originator:     Eric Kjeldergaard
>Release:        -CURRENT
FreeBSD uninfectable 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Sat Dec 24 02:33:07 JST 2005     toor at uninfectable:/usr/obj/usr/src/sys/UNINFECTABLE  i386
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.

try to compile ncurses in base with --enable-widec added to the ./configure arguments
--- 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 @@

 #ifndef _WCHAR_T
+#ifndef __cplusplus
 typedef unsigned long wchar_t;
+#endif /* __cplusplus */
+#endif /* _WCHAR_T_DECLARED */
 #endif /* _WCHAR_T */
 #ifndef _WINT_T
 typedef long int wint_t;
 #endif /* _WINT_T */

 #define CCHARW_MAX     5              

More information about the freebsd-bugs mailing list