#3261: PHP highlighter treats content as string (really a stream)
-------------------------------------------+--------------------------------
 Reporter:  Tim Hatch <[EMAIL PROTECTED]>  |        Owner:  jonas
     Type:  defect                         |       Status:  new  
 Priority:  normal                         |    Milestone:       
Component:  browser                        |      Version:  devel
 Severity:  normal                         |   Resolution:       
 Keywords:                                 |  
-------------------------------------------+--------------------------------
Comment (by mgood):

 If the content is a stream then I don't think the call to encode is
 necessary.  It would've been necessary if content was a `unicode` object,
 but the result of `content.read()` should already be an encoded string.

 However, based on the docstring for `IHTMLPreviewRenderer` the content can
 be a `str` or `unicode` object or a file-like object with a `read` method.
 So the PHP renderer should be made to work with any of those inputs.

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/3261>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to