Path: utzoo!dciem!nrcaer!scs!spl1!laidbak!att!pacbell!ames!mailrus!husc6!purdue!decwrl!thundr.dec.com!minow
From: minow@thundr.dec.com (Martin Minow THUNDR::MINOW ML3-5/U26 223-9922)
Newsgroups: comp.lang.c
Subject: Re: trigraphs in X3J11
Message-ID: <8806021259.AA21135@decwrl.dec.com>
Date: 2 Jun 88 15:59:00 GMT
Article-I.D.: decwrl.8806021259.AA21135
Organization: Digital Equipment Corporation
Lines: 22


Perhaps one of the trigraphs experts could anser a simple question:
Suppose I've written a fully-compliant C compiler (that handles trigraphs)
that I sell to my friend in Visby, Sweden who needs trigraphs since his
language has national letters replacing the "[\]{|}" of US ASCII.  He writes
his first program as:

	??= include 
	main() ??<
		printf("H{lsningar fr}n Visby p} \land!??/n");
	??>

When he runs my compiler, How does it know that the charcter whose value
is decimal 92 is a national letter, and not a backslash that crept in?
Do I need command line arguments or a ??=pragma?  Are they permitted by
the standard?

Will all ??=include files be required to be distributed in their
trigraphed format?

Martin Minow
minow%thundr.dec@decwrl.dec.com