Character Sets

Doug Gwyn gwyn at smoke.BRL.MIL
Sat May 27 03:54:30 AEST 1989


In article <456 at cybaswan.UUCP> iiit-sh at 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().



More information about the Comp.std.c mailing list