summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f5419cb)
raw | patch | inline | side by side (parent: f5419cb)
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) |
program/src/rrd_gfx.c | patch | blob | history |
diff --git a/program/src/rrd_gfx.c b/program/src/rrd_gfx.c
index c012e5cf84df9be748ea2676090229dde2143f58..c56211dae3c2f3e6eccccff36858d3f3db3963bb 100644 (file)
--- a/program/src/rrd_gfx.c
+++ b/program/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);