From: oetiker Date: Wed, 4 Jan 2006 20:12:20 +0000 (+0000) Subject: make sure this actually compiles with HAVE_MBSTOWCS is not defined X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=db0f95ebbf69868993aa6ec59eb45e13aabbef06;p=rrdtool.git 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 --- 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);