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=9391a793626fd52d6bba379b68abf95c59657839;p=rrdtool-all.git 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 --- 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);