From db0f95ebbf69868993aa6ec59eb45e13aabbef06 Mon Sep 17 00:00:00 2001 From: oetiker Date: Wed, 4 Jan 2006 20:12:20 +0000 Subject: [PATCH] make sure this actually compiles with HAVE_MBSTOWCS is not defined git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@736 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_gfx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rrd_gfx.c b/src/rrd_gfx.c index c012e5c..c56211d 100644 --- a/src/rrd_gfx.c +++ b/src/rrd_gfx.c @@ -1081,9 +1081,11 @@ static void svg_write_text(FILE *fp, const char *text) case '"': fputs(""", fp); break; default: if (ch == 32) { +#ifdef HAVE_MBSTOWCS if (p <= cstr + 1 || !*p || *p == 32) fputs(" ", fp); /* non-breaking space in unicode */ else +#endif fputc(32, fp); } else if (ch < 32 || ch >= 127) fprintf(fp, "&#%d;", (int)ch); -- 2.11.0