Modify

Opened 6 years ago

Last modified 3 years ago

#4106 new defect

patch for non-latin character error output

Reported by: moo.tinys@… Owned by: cboos
Priority: high Component: GraphvizPlugin
Severity: normal Keywords: unicode
Cc: Trac Release: 0.10

Description (last modified by rjollos)

  • graphviz/graphviz.py

     
    1616__version__   = '0.6.9' 
    1717 
    1818 
    19 try: 
    20     from cStringIO import StringIO 
    21 except ImportError: 
    22     from StringIO import StringIO 
     19from StringIO import StringIO 
    2320import sha 
    2421import os 
    2522import sys 
     
    401398        if input: 
    402399            p_in.write(input) 
    403400        p_in.close() 
    404         out = p_out.read() 
    405         err = p_err.read() 
     401        out = p_out.read().decode('utf-8') 
     402        err = p_err.read().decode('utf-8') 
    406403        return out, err 

cannot convert to ascii before this patch when there is an error output from graphviz with non-latin characters

Attachments (0)

Change History (2)

comment:2 Changed 5 years ago by cboos

  • Keywords unicode added
  • Owner changed from pkropf to cboos
  • Priority changed from normal to high

comment:3 Changed 3 years ago by rjollos

  • Description modified (diff)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.