From 8ef7bfdc4e8dc076b146d3c2eaf8a08e350b8a63 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sat, 3 Mar 2012 15:47:52 -0500 Subject: Pass non-printing characters through unchanged in sqlifyString, to support UTF-8 --- src/c/urweb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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! } } -- cgit v1.2.3