Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001100graphvizDotpublic2006-04-11 03:472011-04-28 04:03
ReporterNicolas Lionel 
Assigned Toellson 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Linux-OS Version
Summary0001100: Dot only produces black pictures.
Description



Whatever the kind of picutres I ask it always produces a black picture without
any warnings...
Seems to me that the colors used are correct.
Additional Information

[ellson] Works for me.

What command line are you using?

[ellson] Not sure why we have three copies of colortbl.h. I'll fix that
sometime. lib/common/colortbl.h is the one that matters and, as I
suspected, yours in not sorted correctly.

I was mistaken, we were not including the generated colortbl.h in the
distribution like we should.
I've fixed that in CVS. You shouldn't see this problem with
tomorrow's snapshot, but I'd still like
to understand what is going on.

For now, you might want to try substituting the attached colortbl.h
for your lib/common/colortbl.h
and re "make'


The next question is to find out why your sort isn't working as expected.
I can recreate the problem on my system with this test:
<CD>
   $ cat test.txt
   /azure
   azure
   /black
   black
   $ unset LC_COLLATE
   $ sort test.txt
   azure
   /azure
   black
   /black
</CD>

i.e. without LC_COLLATE=C the sort order is not what the binary search
routine expects.
The result expected is:
<CD>
   $ LC_COLLATE=C sort test.txt
   /azure
   /black
   azure
   black
</CD>

What happens when you try this test on your system?

lib/common/Makefile.am contains "LC_COLLATE=C sort" so it shouldn't
matter
to graphviz either way if you have LC_COLLATE in your environment.

Can you check if your "sort" command is up to date? On Fedora it is
/bin/sort
and comes from coreutils-5.94-2

Or perhaps it is a problem with shell. What shell do you use?

[nicolasl17] *I made the test you've asked me, it gives me that:

<CD>
[[email protected] ~]$ unset LC_COLLATE
[[email protected] ~]$ sort test.txt
azure
/azure
black
/black
[[email protected] ~]$ LC_COLLATE=C sort test.txt
azure
/azure
black
/black
[[email protected] ~]$ export LC_COLLATE=C
[[email protected] ~]$ sort test.txt
azure
/azure
black
/black
</CD>

*and for the version:

<CD>
[[email protected] ~]$ sort --version
sort (coreutils) 5.2.1
</CD>

Copyright (C) 2004 Free Software Foundation, Inc.

It's indeed an old version...

*For the Shell I use bash.

TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID922
INPUT-FILEhttp://www.graphviz.org/bugs/b922.dot [^]
OUTPUT-FILE
STATUS-COMMENTFixed (19 April 2006)
VERSION     2.8
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => user695


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker