wchar_t values

Doug Gwyn gwyn at smoke.brl.mil
Tue Apr 16 07:58:22 AEST 1991


In article <1107 at sranha.sra.co.jp> erik at srava.sra.co.jp (Erik M. van der Poel) writes:
>I.e. 10646 'c' does not have the same numeric value as ASCII 'c'.

But it doesn't need to, so long as the compiler translates both L'c'
and 'c' from the multibyte (10646) characters into the same numeric
code values for the resulting char-piece-of-an-int and wchar_t, and
the stdio functions when dealing with text streams provide a similar
mapping (to make the external forms of text streams maximally useful).

There is certainly no requirement in the C standard that 'c' be
represented using the ASCII code set.



More information about the Comp.std.c mailing list