]> granicus.if.org Git - graphviz/commitdiff
Make sure numeric values use "C" locale conventions.
authorerg <devnull@localhost>
Thu, 6 Jan 2011 21:47:35 +0000 (21:47 +0000)
committererg <devnull@localhost>
Thu, 6 Jan 2011 21:47:35 +0000 (21:47 +0000)
lib/gvc/gvlayout.c

index d8ceecaa06ca1109071b0d522fa1548fb403be2e..d1dec814afa3d824e1cbe901d2b0e897e2cb8a9d 100644 (file)
@@ -36,6 +36,7 @@
 
 extern void graph_init(Agraph_t *g, boolean use_rankdir);
 extern void graph_cleanup(Agraph_t *g);
+extern void gv_fixLocale (int set);
 
 int gvlayout_select(GVC_t * gvc, const char *layout)
 {
@@ -85,6 +86,7 @@ int gvLayoutJobs(GVC_t * gvc, Agraph_t * g)
     if (! gvle)
        return -1;
 
+    gv_fixLocale (1);
     graph_init(g, gvc->layout.features->flags & LAYOUT_USES_RANKDIR);
     GD_drawing(agroot(g)) = GD_drawing(g);
     if (gvle && gvle->layout) {
@@ -94,6 +96,7 @@ int gvLayoutJobs(GVC_t * gvc, Agraph_t * g)
        if (gvle->cleanup)
            GD_cleanup(g) = gvle->cleanup;
     }
+    gv_fixLocale (0);
     return 0;
 }