summaryrefslogtreecommitdiff
path: root/src/c
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-03-03 15:47:52 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2012-03-03 15:47:52 -0500
commit8ef7bfdc4e8dc076b146d3c2eaf8a08e350b8a63 (patch)
tree09646a3f633bd0faf4a5e6cbf819c8a4359d24d9 /src/c
parente190e1169a55c1e504542f792b6bc09cfca8b76f (diff)
Pass non-printing characters through unchanged in sqlifyString, to support UTF-8
Diffstat (limited to 'src/c')
-rw-r--r--src/c/urweb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index 0b04f665..dc6ef4e6 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -2429,7 +2429,7 @@ uw_Basis_string uw_Basis_sqlifyString(uw_context ctx, uw_Basis_string s) {
s2 += 4;
}
else
- uw_error(ctx, FATAL, "Non-printable character %u in string to SQLify", c);
+ *s2++ = c; // I hope this is safe to do... don't know how to support UTF-8 outside Postgres otherwise!
}
}