🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3086

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

#3086
From: Charles Hannum
Date: Fri, 31 May 1991 06:19
21 lines
1623 bytes
In article <m0jizgb-0001OzC@dharma.reed.edu> minar@reed.edu writes:

   the Gnu compiler specifically requires you to turn trigraphs ON
   (I think - that might have changed)

Not if you use '-ansi -pedantic' by default.  B-)  (Okay!  So I'm a pedant!)

   and Borland doesn't even have trigraphs in its compiler anymore,
   there's a program called trigraph.com that does the translation
   for you, so just don't execute it!

This is sloppy programming on Borland's part.  (Not surprising!  Borland has
been going steadily downhill for a while now.)

   Oh, I guess its not conforming code, but does anyone really use
   trigraphs? Really, anyone?

Yes.  I, for one, used them rather recently on an IBM 3090, with WATCOM C/370
(which purports to be ANSI-compliant).  The main reason for this is that IBM
3178 and 3179G terminals have no keys for square brackets.  As a C programmer,
I consider this extremely annoying.  B-/
Technical Details
Message-ID: <MYCROFT.91May31021920@goldman.gnu.ai.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!mintaka!ai-lab!life.ai.mit.edu!mycroft
References: <1991May28.231253.5226@csrd.uiuc.edu> <RICHARD.91May29092137 <1157@mwtech.UUCP> <m0jizgb-0001OzC@dharma.reed.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!mintaka!ai-lab!life.ai.mit.edu!mycroft
From: mycroft@goldman.gnu.ai.mit.edu (Charles Hannum)
Newsgroups: comp.std.c
Subject: Re: How to write Trigraph like character sequences in a string (was:Re: to "OR" or not to "OR")
Message-ID: <MYCROFT.91May31021920@goldman.gnu.ai.mit.edu>
Date: 31 May 91 06:19:20 GMT
References: <1991May28.231253.5226@csrd.uiuc.edu> <RICHARD.91May29092137 <1157@mwtech.UUCP>
 <m0jizgb-0001OzC@dharma.reed.edu>
Sender: news@ai.mit.edu
Organization: /home/fsf/mycroft/.organization
Lines: 21
In-reply-to: minar@reed.edu's message of 31 May 91 02:58:02 GMT