1 |
slyfox 15/03/07 11:29:49 |
2 |
|
3 |
Added: graphviz-2.38-fix-backslashes.patch |
4 |
Log: |
5 |
Backport backslash fix from upstream. Thanks to Ulya Trofimovich. |
6 |
|
7 |
(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 media-gfx/graphviz/files/graphviz-2.38-fix-backslashes.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphviz/files/graphviz-2.38-fix-backslashes.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphviz/files/graphviz-2.38-fix-backslashes.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: graphviz-2.38-fix-backslashes.patch |
16 |
=================================================================== |
17 |
User reported a regression between 2.26 and 2.36 |
18 |
when trying to .dot the following graph: |
19 |
|
20 |
digraph g { |
21 |
1 -> 2 [label="\\"] |
22 |
} |
23 |
|
24 |
2.26 shows it as '\' while 2.36 fails as: |
25 |
$ dot -Tpng a.dot -o a.png |
26 |
Warning: 1.dot: syntax error in line 2 near '' |
27 |
|
28 |
Thanks to Ulya Trofimovich who found and bisected |
29 |
the problem down to this commit, which fixes problem |
30 |
only in git version. |
31 |
|
32 |
commit 386e47c14b3a8e83bdf3ec8772963213095a7294 |
33 |
Author: Emden R. Gansner <erg@××××××××.edu> |
34 |
Date: Thu Jan 30 08:45:06 2014 -0500 |
35 |
|
36 |
Remove change made in d19b672a3c06f0ae95b1da38b63b068f71eb266f until we can |
37 |
remember why this change was made. |
38 |
|
39 |
diff --git a/lib/cgraph/scan.l b/lib/cgraph/scan.l |
40 |
index 0a31f0c..5bb30b7 100644 |
41 |
--- a/lib/cgraph/scan.l |
42 |
+++ b/lib/cgraph/scan.l |
43 |
@@ -199,6 +199,7 @@ ID ({NAME}|{NUMBER}) |
44 |
["] BEGIN(qstring); beginstr(); |
45 |
<qstring>["] BEGIN(INITIAL); endstr(); return (T_qatom); |
46 |
<qstring>[\\]["] addstr ("\""); |
47 |
+<qstring>[\\][\\] addstr ("\\\\"); |
48 |
<qstring>[\\][\n] line_num++; /* ignore escaped newlines */ |
49 |
<qstring>([^"\\]*|[\\]) addstr(yytext); |
50 |
[<] BEGIN(hstring); html_nest = 1; beginstr(); |