Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!snorkelwacker!bu.edu!orc!decwrl!bacchus.pa.dec.com!decvax.dec.com!elrond!shodsdon From: shodsdon@elrond.CalComp.COM (Steve V. Hodsdon) Newsgroups: comp.lang.c Subject: Why is tolower behave different??? Message-ID: <2841@elrond.CalComp.COM> Date: 20 Jul 90 14:47:53 GMT Reply-To: shodsdon@elrond.CalComp.COM (Steve V. Hodsdon) Distribution: na Organization: Calcomp Display Products Division, Hudson, NH, USA Lines: 21 I just finished porting a software package that ran on a VAX 11/780 to a Sun SPARCserver. One of the programs would not run. (Could not find the filename specified.). The program was looking for a certain extension, but could not find it. Finally, it dawned on me that the function call tolower was to blame. On the VAX, the call did nothing if the char was already lowercase, while the Sun converted it anyway. I know, I know... RTFM. The FM does say this also. What a pain in the ... I wonder what other little gotchas there are... -- Steve Hodsdon | Stay sane inside insanity. shodsdon@elrond.CalComp.COM | Don't dream it, be it. {decvax|harvard}!elrond!shodsdon | (603) 885-8324 |