[Zope3-checkins] CVS: Zope3/lib/python/Zope/Server/VFS/tests - PosixFilesystemTests.py:1.3 WriteFilesystemTests.py:1.4

Jeremy Hylton jeremy@alum.mit.edu
Thu, 18 Jul 2002 14:21:13 -0400


>>>>> "MF" == Martijn Faassen <faassen@vet.uu.nl> writes:

  MF> Jeremy Hylton wrote:
  >> It sounds like someone ought to fix cStringIO.  (And I don't mean
  >> me!)  It also sounds like that's a project.
  >>
  >> In the meantime, when is it safe to use cStringIO in Zope3?  It's
  >> used in 40 files, including the changes I just made inside
  >> Zope/Server.

  MF> It's safe if you only work with 8 bits strings and never with
  MF> unicode strings directly. I imagine networking code is fine;
  MF> writing to text files (or binary) should also be fine.

That's decent advice in general.  But what about for this particular
project?  Is there any specific hints for Zope3?  It's not clear to me
what code needs to deal with Unicode.

Jeremy