changeset 1689:ae22d1fd9b80

Pass non-printing characters through unchanged in sqlifyString, to support UTF-8
author Adam Chlipala <adam@chlipala.net>
date Sat, 03 Mar 2012 15:47:52 -0500
parents 8c2e8d41a8f2
children a7b70c7b3f1a
files src/c/urweb.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/c/urweb.c	Sat Feb 25 15:34:44 2012 -0500
+++ b/src/c/urweb.c	Sat Mar 03 15:47:52 2012 -0500
@@ -2429,7 +2429,7 @@
         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!
     }
   }