[Zope-dev] Re: [Checkins] SVN: Zope/branches/2.10/ OFS Image:
Image and File now both support simple unicode objects for data (they
function the same as strings for data).
Christian Theune
ct at gocept.com
Wed Jun 28 08:00:12 EDT 2006
Florent Guillaume wrote:
> Has this change been discussed?
> I don't agree with it. Unicode strings aren't byte strings. File and
> Image should only work with byte strings.
> Code dealing with them should always know and assume that they use str.
> Anything using unicode with them is broken or has done insufficient
> input validation.
>
> Please revert, unless you can convince me otherwise.
Right. I raised that issue on IRC already too. I think this should be
reverted _and_ unicode should explicitly be denied to enter those objects.
Christian
--
gocept gmbh & co. kg - forsterstraße 29 - 06112 halle/saale - germany
www.gocept.com - ct at gocept.com - phone +49 345 122 9889 7 -
fax +49 345 122 9889 1 - zope and plone consulting and development
More information about the Zope-Dev
mailing list