[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).
Andreas Jung
lists at zopyx.com
Wed Jun 28 08:01:30 EDT 2006
--On 28. Juni 2006 13:56:58 +0200 Florent Guillaume <fg at nuxeo.com> 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.
I agree. This checkin must be reverted. In fact one raise a ValueError in
case the data is a unicode string.
-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20060628/129dc361/attachment.bin
More information about the Zope-Dev
mailing list