Number: 2158
Title: Dot/dotty disagree on backslash handling (Windows)
Submitter: Austin Hastings
Date: 27 March, 2011
Subsys: dotty
Version: 2.26.3
System: Windows XP Pro, SP3, 32bit, en-us
Severity: minor
Problem:

Backslash sequences in the input intended for display are not
being rendered by dotty. Apparently, there is an extra layer of
backslash processing taking place. If my input file contains
\t, dot.exe renders this as a single backslash and a t, while
dotty.exe renders the t but not the backslash. Changing the input
to \\t makes dotty.exe render a single backslash.

Input:
digraph test {
        rankdir=LR;
        node [ shape = point ];
        ENTRY;
        en_1;
        node [ shape = circle, height = 0.2 ];
        node [ fixedsize = true, height = 0.65, shape = doublecircle ];
        2;
        node [ shape = circle ];
        1 -> 2 [ label = "'\t'..'\n', SP / ws_act" ];
        2 -> 2 [ label = "'\t'..'\n', SP / ws_act" ];
        ENTRY -> 1 [ label = "IN" ];
        en_1 -> 1 [ label = "main" ];
}
Comments:
[erg] The dotty program apparently does its own additional handling of escape sequences, thereby causing the discrepancy. It is not clear when (or if) this will get fixed. The next release will contain gvedit, which should act as a reasonable dotty replacement, although at present it doesn't handle node and edge creation via the mouse.
Owner: *
Status: *