[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mixing characters and bytes

This page is part of the web mail archives of SRFI 56 from before July 7th, 2015. The new archives for SRFI 56 contain all messages, not just those from before July 7th, 2015.

Alex Shinn <alexshinn@xxxxxxxxx> writes:

> On 8/25/05, Michael Sperber <sperber@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>> The string ports specified in SRFI 6 can support byte operations
>> perfectly meaningfully.  I believe SRFI 68 contains a variation of it.
> This is difficult to use in a Scheme that puts tight restrictions on
> its strings, such as requiring them to be valid UTF-8, or if it performs
> character-level semantic operations such as automatically
> normalizing all strings.

If you feed a string output port a bad encoding, sure you get bad
data.  This is a matter of specifying what happens in that case, which
the SRFI does.

Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla