On Wed, Oct 31, 2007 at 03:13:56PM +0100, Jean-Marc Lasgouttes wrote:
> 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.

I don't understand either points. Why

    char_type c = 0xb5;
    os.put(c);

would be ok, but

    unsigned char c = 0xb5;
    os.put(c);

would not?

-- 
Enrico

Reply via email to