Skarmander <> writes:
> Mark McIntyre wrote:
>> On Mon, 07 Nov 2005 00:49:47 GMT, in comp.lang.c , Daniel Rudy
>> <> wrote:
>>
>>>What exactly are trigraphs, and why are they undesireable?
>> They're not. You just try writing C code on a Mac G4 with a US
>> keyboard. 
>
> Even when trigraphs solve the problem, they are arguably an inferior
> solution compared to just about every alternative: redefined keyboard
> layouts, editors with macro capabilities, search-and-replace of
> system-specific characters that are not so easily mistaken for genuine
> character sequences, getting a platform with support for all the
> characters in that newfangled contraption "ASCII". (Just in case. 
>
> It's hard to see why this admittedly annoying problem of input should
> be solved by extending the C language. Mandating that every
> implementation should have on-demand support for trigraphs would have
> been just about acceptable, but unfortunately the standard just
> requires them to be always on.
>
> "Trigraphs: for when even ASCII is too much to ask for..."
The 'A' in ASCII stands for American. There are character sets that
are similar to ASCII except for the substitution of accented letters
for some of the punctuation marks. I *think* these have largely been
superseded by 8-bit and larger character sets that have plenty of room
for both puncutation characters and accented letters, so the need for
trigraphs is less than it was when they were introduced back in the
last 1980s.
If I recall correctly, one of the European national bodies insisted on
some solution for the national character set problem before they would
ratify the standard (I'm not sure whether they insisted on trigraphs
in particular). It was basically a political decision. I'm sure the
details are googleable.
--
Keith Thompson (The_Other_Keith)
kst- <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.