summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5f5778f)
raw | patch | inline | side by side (parent: 5f5778f)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 4 Jan 2006 20:12:20 +0000 (20:12 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 4 Jan 2006 20:12:20 +0000 (20:12 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@736 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_gfx.c | patch | blob | history |
diff --git a/src/rrd_gfx.c b/src/rrd_gfx.c
index c012e5cf84df9be748ea2676090229dde2143f58..c56211dae3c2f3e6eccccff36858d3f3db3963bb 100644 (file)
--- a/src/rrd_gfx.c
+++ b/src/rrd_gfx.c
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);