diff src/c/urweb.c @ 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 225b87d4a7df
children 6f2f74cc4ead
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!
     }
   }