Number: 25
Title: No output when printing to a file or printer.
Submitter: Sara Billey
Date: Wed Jun 13 11:12:26 2001
Subsys: Dot
Version: 1.7c and 1.5
System: Other-Linux-RedHat 6.2
Severity: major
Problem:
I am unable to use the print command from the menu using dotty for linux. I have tried both graphviz versions 1.5 and 1.7c for linux. It does work on the same graph when I use a solaris machine and the 1.7c binararies.

Here is my graph and the error messages:


athena% more schubmult.dot
digraph gra{
size="3,5";
node [shape=record]

label = "nnndata/schubmult.dot" ranksep=2; 0 [label="(2 6 3 1 4 5)"]; 1 [label="(3 5 2 1 4)"]; 2 [label="(2 5 4 1 3)"]; 3 [label="(2 4 3 1)"]; 4 [label="(3 4 5 1 2)"]; 5 [label="(1 4 3 2)"]; 6 [label="(1 4 5 2 3)"]; 7 [label="(2 4 5 1 3)"]; 8 [label="(1 5 3 2 4)"]; 9 [label="(2 5 3 1 4)"]; 5->6; 5->8; 5->3; 6->7; 7->2; 7->4; 8->9; 9->0; 9->1; } athena% dotty schubmul schubmult.dot schubmulttree.dot athena% dotty schubmult.dot dotty.lefty: unknown color black using #1 (this is trying to print to a file)

dotty.lefty: unknown color black using #1 (now trying to print using lpr) Warning - Cannot open file '/tmp/dottyout.ps', No such file or directory beckett: nothing to print rm: cannot remove `/tmp/dottyout.ps': No such file or directory


Input:
digraph gra{
size="3,5";
node [shape=record]

label = "nnndata/schubmult.dot"
ranksep=2;
0 [label="(2 6 3 1 4 5)"];
}
Comments: I love this program!
Fix:
Sorry, no fix found.

-- ellson -- Are you by any chance compiling graphviz locally on a RedHat system?

There is a "feature" in /bin/sort of recent redhat releases that the default sort order has changed and no longer matches the C sort order impied by strcmp().

The work around is to "export LC_COLLATE=C" into your environment before building graphviz. (The bug affects the compile-time sorting of color names used for name->rgb translation.)

If you're seeing this problem with our binary releases then we have this problem somewhere in our build process.
Owner: john
Status: Fixed