Article View: comp.std.c
Article #3112Re: How to write Trigraph like character sequences in a string
From: Andreas Kaiser
Date: Thu, 06 Jun 1991 22:02
Date: Thu, 06 Jun 1991 22:02
32 lines
1699 bytes
1699 bytes
>Actually, one never NEEDS trigraphs; they're required to be
>supported as a convenience when interchanging source code among sites or
>equipment with poor support for the C source character set.
There are character sets, which do not support all C language characters, such
as braces and brackets (example: 7-bit german). While it is usually possible to
use the characters corresponding to these ASCII codes instead (...but almost
unreadable), it is likewise possible that some text file exchange program
silently converts these special characters into PC, ISO or ECMA 8-bit
equivalents. Trigraph characters are available in all roman-style character sets
and will be understood by all machines.
While I never saw a machine-readable program actually using these trigraphs, I
saw printed demo programs in german books or student lessons, where the braces,
brackets, backslashes etc. were added by pencil, because german typewriters
usually do not support them.
While trigraphs in a C program are likewise unreadable as the german umlauts,
they can be hidden by macros without accidentally undergoing invalidating
conversions.
Gru!!s, Andreas
* Origin: kaiser@ananke.stgt.sub.org - Stuttgart FRG (2:244/7014)
Technical Details
Message-ID:
<676248139.0@ananke.stgt.sub.org>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!smurf!nadia!ananke!UUCPShow Full Headers
Complete Article Headers
From: Andreas.Kaiser@f7014.n244.z2.stgt.sub.org (Andreas Kaiser) Sender: UUCP@ananke.stgt.sub.org Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!smurf!nadia!ananke!UUCP Newsgroups: comp.std.c Subject: Re: How to write Trigraph like character sequences in a string Message-ID: <676248139.0@ananke.stgt.sub.org> Date: 06 Jun 91 23:02:56 MET