Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!diemen!sol!quan From: quan@sol.surv.utas.edu.au (Stephen Quan) Newsgroups: comp.lang.fortran Subject: {upper|lower}case (Re: intrinsic) Message-ID: Date: 19 Dec 90 06:28:45 GMT References: <52072@eerie.acsu.Buffalo.EDU> <406@inetg1.arco.com> Sender: news@diemen.utas.edu.au Distribution: comp Lines: 23 dprpjf@inetg1.Arco.Com (Paul Fowler) writes: >quan@sol.surv.utas.edu.au (Stephen Quan) writes: >> You beauty! This helps a great deal! For instance, I've replaced 26 >> IF statements in my uppercase to lowercase conversion routine by one! > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> - Don't tell me there is an instrinic to do *that* already! >> >If you did have an intrinsic to do case conversion, you could count on it not >being part of the ANSI/ISO Fortran77 standard - because lowercase letters >are not part of the standard character set! (Of course, if you were >using C, you could use tolower(), but let's not start up THAT war again...) I had a lousy, pain in the neck, search forever kind of bug which simply turned out to be I was opening files with the letters in wrong cases. ie. OPEN (11,FILE="XYZ") needed to be changed to OPEN (11,FILE="xyz"). The UNIX platform doesn't support standard Fortran very much does it?! I suppose that Fortran was meant for systems where filenames were case insensitive. Stephen Quan, University of Tasmania.