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
>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 at 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:
More information about the freebsd-bugs
mailing list