[Openmcl-devel] [babel-devel] Changes

Luis Oliveira luismbo at gmail.com
Sun Apr 12 18:36:23 PDT 2009


james anderson <james.anderson at setf.de> writes:

> what happens in this scenario, should your program
>
>   - combine such a tainted "string" with a string which comprises  
> valid characters only?
>
>   - attempt to encode such an object as utf-8?
>
> is it enough to simply, informally relax the type constraint on  
> string elements to permit non-characters?
>
> would it be enough to signal an error upon an attempt to encode one  
> as utf-8?

I think it might. (Or replace invalid characters with #\uFFFD, perhaps.)

In any case, decoding such invalid characters results in an error (or
replacement characters) so this would be a rare situation.


> would one need to signal an error upon assignment to a slot of type  
> STRING?

Probably not.

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/




More information about the Openmcl-devel mailing list