Trigraphs and national letters?
minow at decvax.UUCP
minow at decvax.UUCP
Sat Feb 28 09:01:10 AEST 1987
I'm still a bit confused about trigraphs and national (European) letters.
If I am programming in ANSI C in an environment using the Swedish national
replacement character set, the Capital-O-with-dieresis character occupies
the same code position as USASCII backslash..
How should I write a string containing this character? (The examples
represent it by 'O'):
"O" /* "something" understands that this isn't backslash */
"??/O" /* Trigraph-backslash quotes next character */
"??/??/" /* Quoted backslash which *I* know is quoted O */
For that matter, how does the compiler process a program written in
America that doesn't use trigraphs, but does use \ (the same code position
as O)?
Martin Minow
decvax!minow
More information about the Comp.lang.c
mailing list