Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!aplcen!haven!adm!xadmx!R1TMARG%AKRONVM.BITNET@cornellc.cit.cornell.edu From: R1TMARG%AKRONVM.BITNET@cornellc.cit.cornell.edu (Tim Margush) Newsgroups: comp.lang.pascal Subject: Converting to UPPER case Message-ID: <21481@adm.BRL.MIL> Date: 17 Nov 89 18:43:47 GMT Sender: news@adm.BRL.MIL Lines: 16 I know that the question regarding conversion of strings to upper case was asked from the turbo pascal perspective. Here at the Univ. of Akron, our introductory pascal class uses an IBM mainframe. In pascal, this means that the collating sequence for the characters is a bit different from that on most other machines (EBCDIC vs ASCII). The conversion routines posted both relied upon the contiguity of the codes for the characters a..z and A..Z. On some EBCDIC systems, there are valid characters within this range that should not be converted in an upcase/lowcase operation. This is something to consider for those writing programs that might be used in both environments. After all, isn't Pascal code completely portable? --------------------------------------------------------------------- Tim Margush R1TMARG@AKRONVM.BITNET Department of Mathematical Sciences R1TMARG@VM1.CC.UAKRON.EDU University Of Akron R1TMARG@AKRONVM.UAKRON.EDU Akron, OH 44325 (216) 375-7109