Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!ncar!ames!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.std.c Subject: Re: Character Sets Message-ID: <10331@smoke.BRL.MIL> Date: 26 May 89 17:54:30 GMT References: <4623@freja.diku.dk> <12.UUL1.3#5077@aussie.UUCP> <2469@ogccse.ogc.edu> <373@cybaswan.UUCP> <10194@smoke.BRL.MIL> <442@cybaswan.UUCP> <10284@smoke.BRL.MIL> <456@cybaswan.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 18 In article <456@cybaswan.UUCP> iiit-sh@cybaswan.UUCP (Steve Hosgood) writes: >I certainly hope so. Presumably the C standard allows for 8-bit character sets? Understatement of the decade. >Also, what about such things as allowable characters in identifiers and such >like? Just yesterday, I was writing a program where I would have liked to have >used Greek characters as identifiers. Is that sort of thing permissable? The Standard does not permit use of any character other than _, 0-9, a-z, and A-Z in identifiers, although comments may contain just about anything. >Would 'toupper' return upper-case Epsilon if given lower-case epsilon as an >argument? That's implementation- and locale-dependent. In the default ("C") locale, only 'a' through 'z' are mapped into different characters by toupper().