How to write Trigraph like character sequences in a string (was: Re: to "OR" or not to "OR")

P E Smee exspes at gdr.bath.ac.uk
Sat Jun 1 00:11:38 AEST 1991


In article <m0jizgb-0001OzC at dharma.reed.edu> minar at reed.edu writes:
> Oh, I guess its not conforming code, but does anyone really use
>trigraphs? Really, anyone? If I had a keyboard that wasn't fully C
>capable, I'd certainly use something, but it wouldn't be trigraphs,
>unless I had to ship the code elsewhere..

Well, if you are forced (as I was a year or two ago) to use C on big
IBM iron (3090 running VM/CMS) you find yourself more or less forced
into using trigraphs.  A large number of the characters which are
important to C {}[]| and probably a few I've forgotten are not,
pragmatically, useable, because the EBCDIC codes for them are not well
defined.  (There are somthing like 9 possible 8-bit values for each of
these chars, which in some cases overlap -- i.e. [ in one encoding will
be the same as ] in another.  Different sub-models of 3270 keyboards
use different encodings, and different programs ditto.

-- 
Paul Smee, Computing Service, University of Bristol, Bristol BS8 1UD, UK
 P.Smee at bristol.ac.uk - ..!uunet!ukc!bsmail!p.smee - Tel +44 272 303132



More information about the Comp.std.c mailing list