[Dot] dot -Xdot gives incorrect length in T record with utf-8 strings
Ported Issue from Mantis Original ID: 2573 Reported By: SNoiraud
SEVERITY: MAJOR Submitted: 2015-10-11 11:02:47
OS: UBUNTU TRUSTY
OS BUILD: 15.04
DESCRIPTION
With the following source :
digraph GRAMPS_graph
{
_a [ shape="box" style="solid" label=<<TABLE BORDER="0"><TR><TD>ëï éà€ùǜ<BR/>Next line</TD></TR></TABLE>> URL="P_a" ];
}
xdot gives 16 characters for "ëï éà€ùǜ" instead of 8.
STEPS TO REPRODUCE
Download the bug.dot file and do : dot -Txdot -o bug.out bug.dot
In the generated output, we get :
_ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 15 27.3 -1 46 16 -ëï éà€ùǜ F 14 ...
instead of :
_ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 15 27.3 -1 46 8 -ëï éà€ùǜ F 14 ..