Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!swrinde!ucsd!ucsdhub!hp-sdd!ncr-sd!noel.cts.com!greg From: greg@noel.CTS.COM (J. Gregory Noel) Newsgroups: comp.sys.amiga.tech Subject: Aztec C bug report: _toupper() and _tolower reversed Message-ID: <1686.AA1686@noel> Date: 8 Feb 90 17:14:42 GMT Lines: 19 BUG: The #defines in for _toupper and _tolower are reversed Try the attached program: ----------- cut here #include #include main(void) { printf("This should print 'C': %c\n", _toupper('c')); printf("This should print 'c': %c\n", _tolower('C')); return 0; } ----------- cut here The bug also seems to infect (hmmmm, that was a typo for "affect" but it's too good to remove) some of the library modules that might use _toupper() and _tolower(); I get inconsistant results. -- -- J. Gregory Noel, UNIX Guru greg@noel.cts.com or greg@noel.uucp