[ZCM] [ZC] 1474/ 1 Request "PageTemplateFile opens XML files in
binary mode"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Thu Aug 19 11:49:48 EDT 2004
Issue #1474 Update (Request) "PageTemplateFile opens XML files in binary mode"
Status Pending, Zope/bug medium
To followup, visit:
http://collector.zope.org/Zope/1474
==============================================================
= Request - Entry #1 by yuppie on Aug 19, 2004 11:49 am
This is a problem on Windows. If I read the specs ( http://www.w3.org/TR/2004/REC-xml-20040204/#sec-line-ends ) correctly, Windows newlines are allowed within XML. But PageTemplateFile opens them in binary mode, ignoring the fact the file might contain CRs. As a result, the parsed files contain a mix of CR/LF, LF and even CR newlines.
Is there any good reason why this was fixed for HTML, but not for XML files?
==============================================================
More information about the Zope-Collector-Monitor
mailing list