🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3102

Re: How to write Trigraph like character sequences in a string

#3102
From: Sean Eric Fagan
Date: Tue, 04 Jun 1991 05:04
20 lines
1511 bytes
In article <16332@smoke.brl.mil> gwyn@smoke.brl.mil (Doug Gwyn) writes:
>However, all conforming
>implementations MUST support the full C source character set (as specified
>in X3.159-1989 section 2.2.1) in addition to trigraph sequences (2.2.1.1).

And the only "standard" way to *get* trigraphs is to use the 'c89' command.
Since ANSI C *can't* specify how to get full conformance, having something
like

	filter_trigraphs file.c | pre_processor | check_syntax | compile

is a perfectly "valid" way to get a conforming compiler.  Unless, as noted
previously, you're on a POSIX-compliant system, in which case you will be
able to use the aforementioned c89 command.

-- 
Sean Eric Fagan  | "I made the universe, but please don't blame me for it;
sef@kithrup.COM  |  I had a bellyache at the time."
-----------------+           -- The Turtle (Stephen King, _It_)
Any opinions expressed are my own, and generally unpopular with others.
Technical Details
Message-ID: <1991Jun04.050444.16615@kithrup.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!uunet!kithrup!sef
References: <1991May31.133330.1149@roundup.crhc.uiuc.edu> <1991Jun3.011539.17430@tkou02.enet.dec.com> <16332@smoke.brl.mil>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!uunet!kithrup!sef
From: sef@kithrup.COM (Sean Eric Fagan)
Newsgroups: comp.std.c
Subject: Re: How to write Trigraph like character sequences in a string
Message-ID: <1991Jun04.050444.16615@kithrup.COM>
Date: 4 Jun 91 05:04:44 GMT
Article-I.D.: kithrup.1991Jun04.050444.16615
References: <1991May31.133330.1149@roundup.crhc.uiuc.edu> <1991Jun3.011539.17430@tkou02.enet.dec.com> <16332@smoke.brl.mil>
Organization: Kithrup Enterprises, Ltd.
Lines: 20