From 9391a793626fd52d6bba379b68abf95c59657839 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@736 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_gfx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/program/src/rrd_gfx.c b/program/src/rrd_gfx.c index c012e5cf..c56211da 100644 --- a/program/src/rrd_gfx.c +++ b/program/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.30.2