Xref: utzoo comp.sys.ibm.pc:16898 comp.binaries.ibm.pc.d:509 comp.emacs:3749 Path: utzoo!attcan!uunet!husc6!bu-cs!madd From: madd@bu-cs.BU.EDU (Jim Frost) Newsgroups: comp.sys.ibm.pc,comp.binaries.ibm.pc.d,comp.emacs Subject: Re: US PC programmers still live in a 7-bit world! Message-ID: <23589@bu-cs.BU.EDU> Date: 2 Jul 88 19:52:01 GMT References: <1988Jun22.223158.1366@LTH.Se> <126@dcs.UUCP> Reply-To: madd@bu-it.bu.edu (Jim Frost) Followup-To: comp.sys.ibm.pc Organization: Boston University Distributed Systems Group Lines: 16 In article <126@dcs.UUCP> wnp@dcs.UUCP (Wolf N. Paul) writes: |The C functions toupper()/tolower() rely on upper and lower case to be |two parallel groups of consecutive codes within the ASCII scheme. Keep in mind that the implementations of isupper() and islower() often are table driven and do not make this assumption. Also, toupper() and tolower() are sometimes as simple as: #define toupper(A) (A - ('a' - 'A')) and other times are complex enough to check for upper/lowercaseness. I'd just implement my own that handled the extra characters. Who says that you have to use the routines supplied with your compiler? jim frost madd@bu-it.bu.edu