diff options
author | Adam Chlipala <adam@chlipala.net> | 2012-03-03 15:47:52 -0500 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2012-03-03 15:47:52 -0500 |
commit | 6bdf5f35f3e3efad57eb900cf9578900126c54dc (patch) | |
tree | 09646a3f633bd0faf4a5e6cbf819c8a4359d24d9 | |
parent | 78398d0d94e638982876c99a3988ee18884a4905 (diff) |
Pass non-printing characters through unchanged in sqlifyString, to support UTF-8
-rw-r--r-- | src/c/urweb.c | 2 |
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! } } |