Multibyte character constants????
Karl Heuer
karl at haddock.ima.isc.com
Sun Jul 1 03:13:33 AEST 1990
In article <1990Jun28.221927.6823 at idt.unit.no> arnej at solan1.solan.unit.no writes:
>We have stumbled across the subject of multibyte character constants...
As has been noted, X3J11 has already claimed the word `multibyte' for
something else (and also the term `wide character constant', which might have
been my second choice). I have coined the term `siamese character constant'
to denote the thing we're talking about here.
>[What is the value of a constant 'AB'?]
Nothing is guaranteed about its value except that the implementation must
document it. It's extremely likely that, if SCCs are supported at all, then
'AB' will be either 'A'<<CHAR_BIT|'B' or 'A'|'B'<<CHAR_BIT, but I wouldn't be
too surprised by an implementation that punted by making them all have value
zero (with a warning).
Trivium: an old version of stdio supported putchar('AB'); which would output
both characters. I had to rewrite the algorithm when we upgraded to V7.
Karl W. Z. Heuer (karl at kelp.ima.isc.com or ima!kelp!karl), The Walking Lint
More information about the Comp.std.c
mailing list