From f0bea1bab0afe9ea00c62ef71524e9ccf290f4c9 Mon Sep 17 00:00:00 2001 From: erg Date: Tue, 19 May 2009 17:06:43 +0000 Subject: [PATCH] Make locale return global, and use it in attach_attrs_and_arrows which is used (indirectly) by gvpack. --- lib/common/emit.c | 2 +- lib/common/output.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/common/emit.c b/lib/common/emit.c index 1becc1f97..673f9edc8 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -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; diff --git a/lib/common/output.c b/lib/common/output.c index 35c6f7ed0..c14cf7ea1 100644 --- a/lib/common/output.c +++ b/lib/common/output.c @@ -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) -- 2.40.0