]> granicus.if.org Git - graphviz/commitdiff
Make locale return global, and use it in attach_attrs_and_arrows
authorerg <devnull@localhost>
Tue, 19 May 2009 17:06:43 +0000 (17:06 +0000)
committererg <devnull@localhost>
Tue, 19 May 2009 17:06:43 +0000 (17:06 +0000)
which is used (indirectly) by gvpack.

lib/common/emit.c
lib/common/output.c

index 1becc1f9792b471d477cd7593ea03a33a9ec7e7f..673f9edc893063bcdc4ee6d742b279066af3a562 100644 (file)
@@ -2870,7 +2870,7 @@ extern gvdevice_callbacks_t gvdevice_callbacks;
  * if set is zero, the original locale is reset.
  * Calls to the function can nest.
  */
-static void gv_fixLocale (int set)
+void gv_fixLocale (int set)
 {
     static char* save_locale;
     static int cnt;
index 35c6f7ed05987a82b79afea0b70c7227984ea3aa..c14cf7ea16392d257cc6d4d802e55b9096ca80c3 100644 (file)
@@ -238,6 +238,7 @@ void attach_attrs_and_arrows(graph_t* g, int* sp, int* ep)
     pointf ptf;
     int dim3 = (GD_odim(g) >= 3);
 
+    gv_fixLocale (1);
     e_arrows = s_arrows = 0;
     setYInvert(g);
     agxbinit(&xb, BUFSIZ, xbuffer);
@@ -398,6 +399,7 @@ void attach_attrs_and_arrows(graph_t* g, int* sp, int* ep)
     
     *sp = s_arrows;
     *ep = e_arrows;
+    gv_fixLocale (0);
 }
 
 void attach_attrs(graph_t * g)