pombreda / pydot

Automatically exported from code.google.com/p/pydot
MIT License
0 stars 0 forks source link

pydot crashes with character with accent #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

import pydot
g = pydot.Dot()
g.add_node(pydot.Node("Anne-Cécile"))
g.add_edge(pydot.Edge(src='Anne-Cécile', dst='Anne-Marie'))
g.write('test.jpg', format='raw')
g.write_jpeg('test.jpg')

What is the expected output? What do you see instead?

>>> g.write_jpeg('test.jpg')
True

What do you see instead?

>>> g.write_jpeg('test.jpg')
Anne-Cécile [195, 169]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/pydot.py", line 1603, in <lambda>
    lambda path, f=frmt, prog=self.prog : self.write(path, format=f,
prog=prog))
  File "/usr/lib/python2.5/site-packages/pydot.py", line 1697, in write
    dot_fd.write(self.create(prog, format))
  File "/usr/lib/python2.5/site-packages/pydot.py", line 1797, in create
    status, stderr_output) )
pydot.InvocationException: Program terminated with status: 6. stderr follows:
Error: /tmp/tmpVEABbQ:2: syntax error near line 2
context:  >>> Anne- <<< Cécile;

What version of the product are you using? On what operating system?
1.0.2 on Fedora 10 (also occurs in Rawhide)

Please provide any additional information below.

Originally filed here: https://bugzilla.redhat.com/show_bug.cgi?id=481540

Original issue reported on code.google.com by spo...@gmail.com on 3 Feb 2009 at 8:25

GoogleCodeExporter commented 9 years ago
This issue can be resolved with the attached patch, written by Toshio Kuratomi
<a.badger@gmail.com>.

Original comment by spo...@gmail.com on 6 Jul 2009 at 1:09

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by ero.carr...@gmail.com on 31 Oct 2010 at 12:12