Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002567graphvizGvprpublic2015-08-27 15:142015-08-27 15:18
Reporterszabi 
Assigned To 
PrioritynormalSeveritycriticalReproducibilityalways
StatusnewResolutionopen 
PlatformOSMac OSXOS Version10.10.3
Summary0002567: 'sprintf' does not work as it is documented with certain parameters
DescriptionWhile 'printf' works as it should (= as in C), 'sprint' *severely* corrupts the output string with certain input parameters.

Steps To ReproduceBEGIN {
  string e (obj_t o, string aname) {
    if (hasAttr(o, aname)) {return aget(o, aname); }
    else {return "_"; }
  }
  string fmt = '%s
%s
<FONT POINT-SIZE="10">S: %s
P: %s</FONT>'
}
N { printf(fmt, e($, "name"), e($, "shape"), e($, "attr3"), e($, "attr4")) ;
    print();
    print(sprintf(fmt, e($, "name"), e($, "shape"), e($, "attr3"), e($, "attr4")) );
    print();
  }
Additional InformationRun on any graph, e.g. even as simple as


strict digraph Test {
  A [ label = "A"]
  beta [ label = "β"]
  A -> beta
}
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT
VERSION
Attached Files? file icon bug.gvpr (Attachment missing)

- Relationships

-  Notes
User avatar (0000966)
szabi (reporter)
2015-08-27 15:17

I see the 'gvpr' source I input got corrupted (of course, < > brackets...)

I'm uploading now as an attachment.

- Issue History
Date Modified Username Field Change
2015-08-27 15:14 szabi New Issue
2015-08-27 15:17 szabi Note Added: 0000966
2015-08-27 15:17 szabi File Added: bug.gvpr


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