diff src/c/urweb.c @ 1857:79c0c22e13ae

Postgres unicode printing fix from Artyom Shalkhakov
author Adam Chlipala <adam@chlipala.net>
date Wed, 17 Jul 2013 09:09:48 -0400
parents 690638bd9fef
children 9fc086e3c95a
line wrap: on
line diff
--- a/src/c/urweb.c	Sat Jun 15 08:18:47 2013 -0400
+++ b/src/c/urweb.c	Wed Jul 17 09:09:48 2013 -0400
@@ -2451,7 +2451,7 @@
       if (isprint((int)c))
         *s2++ = c;
       else if (uw_Estrings) {
-        sprintf(s2, "\\%03o", c);
+        sprintf(s2, "\\%03o", (unsigned char)c);
         s2 += 4;
       }
       else
@@ -2494,7 +2494,7 @@
     if (isprint((int)c))
       *s2++ = c;
     else if (uw_Estrings) {
-      sprintf(s2, "\\%03o", c);
+      sprintf(s2, "\\%03o", (unsigned char)c);
       s2 += 4;
     }
     else