]> granicus.if.org Git - graphviz/commitdiff
Fix for bug 2417.
authorEmden R. Gansner <erg@alum.mit.edu>
Fri, 24 Jan 2014 16:46:26 +0000 (11:46 -0500)
committerEmden R. Gansner <erg@alum.mit.edu>
Fri, 24 Jan 2014 16:46:26 +0000 (11:46 -0500)
lib/cgraph/scan.l

index d065b61fbaa7ab97fcb7fc573a3a2c5b27a2fadb..0a31f0ce4f7da06dc4fb66641a8e35df6763429f 100644 (file)
@@ -185,6 +185,7 @@ ID          ({NAME}|{NUMBER})
 ^"#".*                                 ppDirective ();
 "#".*                                  /* ignore shell-like comments */
 [ \t\r]                                        /* ignore whitespace */
+"\xEF\xBB\xBF"                         /* ignore BOM */
 "node"                                 return(T_node);                 /* see tokens in agcanonstr */
 "edge"                                 return(T_edge);
 "graph"                                        if (!graphType) graphType = T_graph; return(T_graph);