From phillip@pm.cse.rmit.edu.au  Wed Sep 25 15:49:58 1996
Received: from mirriwinni.cse.rmit.edu.au (pm.cse.rmit.EDU.AU [131.170.118.50])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id PAA18193
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Sep 1996 15:49:55 -0700 (PDT)
Received: (from phillip@localhost) by mirriwinni.cse.rmit.edu.au (8.7.5/8.6.12) id IAA18577; Thu, 26 Sep 1996 08:49:52 +1000 (EST)
Message-Id: <199609252249.IAA18577@mirriwinni.cse.rmit.edu.au>
Date: Thu, 26 Sep 1996 08:49:52 +1000 (EST)
From: phillip@rmit.edu.au
Reply-To: phillip@rmit.edu.au
To: FreeBSD-gnats-submit@freebsd.org
Cc: phillip@rmit.edu.au
Subject: rune bug and confirmation of Bruce Evans fix
X-Send-Pr-Version: 3.2

>Number:         1680
>Category:       misc
>Synopsis:       Error in rune.h stuff
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 25 15:50:01 PDT 1996
>Closed-Date:    Wed Oct 23 12:47:36 PDT 1996
>Last-Modified:  Wed Oct 23 12:49:11 PDT 1996
>Originator:     Phillip Musumeci
>Release:        FreeBSD 2.1.5-RELEASE i386
>Organization:
Computer Systems Engineering, RMIT.
------------------------   __  /\  ----------------------------------------
Dr. Phillip Musumeci      /  \/  \   Dept. of Computer Systems Engineering,
mail:phillip@rmit.edu.au /        \  RMIT,  GPO Box 2476V,
Tel.++61 3 96605340(fax)/         /  Melbourne 3001,  AUSTRALIA.
    ++61 3 96605317(w1) \   __   / http://pm.cse.rmit.edu.au/~phillip
    ++61 3 96605383(w2)  `-'  \*/  Level 2, 410 Elizabeth Steet. [87.2.15G]
                               .
UNIX _IS_ user friendly.  It's just selective about who its friends are.
                                                                  --unknown
>Environment:

	FreeBSD 2.1.5 RELEASE

>Description:

	Error in rune related include files.

>How-To-Repeat:

	Try including any rune.h stuff.

>Fix:
	
	Apply patches as suggested by Bruce Evans.  Copy enclosed.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: scrappy 
Responsible-Changed-When: Tue Oct 22 23:14:56 PDT 1996 
Responsible-Changed-Why:  
what is gnats-admin? 

btw...there is a patch in here for rune.h, if someone can check it over? 

State-Changed-From-To: open->closed 
State-Changed-By: scrappy 
State-Changed-When: Wed Oct 23 12:47:36 PDT 1996 
State-Changed-Why:  

Bruce: fixed this in -current on 96/04/30  
>Unformatted:
Hi,
   I was recently making a package called plplot which used the rune stuff
for multi-lingual character sets.  It turned out there are some errors in
the include files.  Anyway, I (eventually) searched the mailing list and
found a posting from Bruce Evans (core team, by memory, of most OS
development groups...) and did what he suggested --- it all worked fine.
Enclosed are my diffs which represent what I understood his comments to say
to do (do a search for rune and you'll get his posting of November 1995).
It is clear that there are some small errors in these original include
files because you will see one instance where a typedef is issued and then
the next statement just redefines that typedef --- can't imagine what the
BSD-4.4-lite person was thinking there!

Thanks,
phillip

--------------------------------------------------------------
|  $ diff /usr/include/runetype.h.orig /usr/include/runetype.h     
|  46d45
|  < typedef _BSD_WCHAR_T_ rune_t;
|  49a49
|  > typedef _BSD_RUNE_T_   rune_t;
|  
|  $ diff /usr/include/stddef.h.orig /usr/include/stddef.h 
|  49,51d48
|  < #ifndef _ANSI_SOURCE
|  < typedef       _BSD_WCHAR_T_   rune_t;
|  < #endif
|  
|  $ diff /usr/include/stdlib.h.orig /usr/include/stdlib.h 
|  47,49d46
|  < #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
|  < typedef       _BSD_WCHAR_T_   rune_t;
|  < #endif
--------------------------------------------------------------

