Enrico Forestieri <[EMAIL PROTECTED]> writes:

> Not really. UCS-4 code points from 0x0000 to 0x00ff exactly correspond
> to latin-1 code points. So
>
>    unsigned char c = 0xb5;
>    os.put(c);
>
> gives me a 'µ' character, and the assertion above is wrong.
> Maybe you have utf8 in mind.

We should not have a method that interprets raw characters as latin1.
So we should either

1/ find some way to forbid passing 8bit chars to <<
or
2/ only allow the ascii range, like Abdel proposed.

JMarc

Reply via email to