From chrisr@pavilion.net  Thu May 11 04:37:35 2000
Return-Path: <chrisr@pavilion.net>
Received: from core.pavilion.net (core.pavilion.net [212.74.0.24])
	by hub.freebsd.org (Postfix) with ESMTP id 95BE537B612
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 11 May 2000 04:37:34 -0700 (PDT)
	(envelope-from chrisr@pavilion.net)
Received: (from chrisr@localhost)
	by core.pavilion.net (8.9.3/8.8.8) id MAA39521;
	Thu, 11 May 2000 12:37:41 +0100 (BST)
	(envelope-from chrisr)
Message-Id: <200005111137.MAA39521@core.pavilion.net>
Date: Thu, 11 May 2000 12:37:41 +0100 (BST)
From: chrisr@pavilion.net
Reply-To: chrisr@pavilion.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: Possibly a problem between curses.h/runetype.h?
X-Send-Pr-Version: 3.2

>Number:         18496
>Category:       gnu
>Synopsis:       Possibly a problem between curses.h/runetype.h?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    rafan
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 11 04:40:01 PDT 2000
>Closed-Date:    Sun Apr 29 08:01:35 GMT 2007
>Last-Modified:  Sun Apr 29 08:01:35 GMT 2007
>Originator:     Chris Roberts
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
Pavilion Internet Plc
>Environment:

FreeBSD 4.0/x86

>Description:

In curses.h wchar is typedef's as follows:
#ifndef _WCHAR_T
typedef unsigned long wchar_t; 
#endif /* _WCHAR_T */

And in runetype.h:

#ifdef  _BSD_WCHAR_T_
typedef _BSD_WCHAR_T_   wchar_t;
#undef  _BSD_WCHAR_T_
#endif

>How-To-Repeat:

Including ctype.h and curses.h seems to cause compiling errors because wchar
gets redefined.

>Fix:

I've changed runetype.h to say:
#ifdef  _BSD_WCHAR_T_
typedef _BSD_WCHAR_T_   wchar_t;
#define _WCHAR_T
#undef  _BSD_WCHAR_T_
#endif

Which fixes it for me. Is it a bug, or just me including too much?

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: rafan 
State-Changed-When: Sun Apr 29 08:00:12 UTC 2007 
State-Changed-Why:  
I believe this is fixed by recent ncurses update 
in 6.x which includes wide character support by default. 

If this is still a problem, let me know. 


Responsible-Changed-From-To: freebsd-bugs->rafan 
Responsible-Changed-By: rafan 
Responsible-Changed-When: Sun Apr 29 08:00:12 UTC 2007 
Responsible-Changed-Why:  
ncurses is my baby. 

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