Subject: lib/10010: toupper mangles non-uppercase characters
To: None <gnats-bugs@gnats.netbsd.org, kim@tac.nyc.ny.us, arp@tac.eu.org>
From: Adam R. Prato <arp@tac.eu.org>
List: netbsd-bugs
Date: 04/28/2000 21:27:09
>Number:         10010
>Category:       lib
>Synopsis:       toupper mangles non-uppercase characters
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 28 21:28:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Adam R. Prato
>Release:        1.4.2
>Organization:
	
>Environment:
	
System: NetBSD hrothgar.gw.com 1.4.2 NetBSD 1.4.2 (GW-GENERIC) #4: Sat Mar 4 07:45:36 EET 2000 kim@pyry.gw.com:/net/pyry/src-2/NetBSD/cvsroot/src/sys/arch/i386/compile/GW-GENERIC i386


>Description:
 	toupper() returns changed values for short ints other than uppercase
characters. For example: x8d -> x0d, x83 -> ^M, xa0-xbf -> various characters
>How-To-Repeat:
	just try toupper() on values from 1-255. Only x61-x7F should change.
>Fix:
        unsure. toupper() is two lines. no idea why its not working.
>Release-Note:
>Audit-Trail:
>Unformatted: