Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pydot crashes with character with accent #23

Closed
GoogleCodeExporter opened this issue Apr 13, 2015 · 2 comments
Closed

pydot crashes with character with accent #23

GoogleCodeExporter opened this issue Apr 13, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant