From nobody@FreeBSD.org  Tue Dec 27 19:54:41 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 95F8216A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 27 Dec 2005 19:54:41 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5013343D67
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 27 Dec 2005 19:54:41 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jBRJsfO5055414
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 27 Dec 2005 19:54:41 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id jBRJsfDt055413;
	Tue, 27 Dec 2005 19:54:41 GMT
	(envelope-from nobody)
Message-Id: <200512271954.jBRJsfDt055413@www.freebsd.org>
Date: Tue, 27 Dec 2005 19:54:41 GMT
From: Eric Kjeldergaard <kjelderg@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] ncurses doesn't compile with --enable-widec
X-Send-Pr-Version: www-2.3

>Number:         90990
>Category:       bin
>Synopsis:       [PATCH] ncurses doesn't compile with --enable-widec
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    rafan
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 27 20:00:19 GMT 2005
>Closed-Date:    Fri Apr 06 18:02:45 GMT 2007
>Last-Modified:  Fri Apr 06 18:02:45 GMT 2007
>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:
Responsible-Changed-From-To: freebsd-bugs->rafan 
Responsible-Changed-By: rafan 
Responsible-Changed-When: Sun Jan 21 13:20:41 UTC 2007 
Responsible-Changed-Why:  
I'm working on wide character support in base ncurses. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=90990 
State-Changed-From-To: open->feedback 
State-Changed-By: rafan 
State-Changed-When: Thu Feb 15 02:50:50 UTC 2007 
State-Changed-Why:  
I have ncurses wide character support patch for current: 

http://lists.freebsd.org/pipermail/freebsd-current/2007-February/068982.html 

Could you please test it? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=90990 
State-Changed-From-To: feedback->patched 
State-Changed-By: rafan 
State-Changed-When: Fri Mar 9 13:41:35 UTC 2007 
State-Changed-Why:  
7-CURRENT has ncursesw in the base system. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=90990 
State-Changed-From-To: patched->closed 
State-Changed-By: rafan 
State-Changed-When: Fri Apr 6 18:02:44 UTC 2007 
State-Changed-Why:  
ncurses 5.6 is merged to 6.x. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=90990 
>Unformatted:
