# HG changeset patch # User Adam Chlipala # Date 1374066588 14400 # Node ID 79c0c22e13aecbda9443dbfbae2a7eed9a31a3c0 # Parent 3683d1a8c1c8ccc278450ecac33171046aa1520d Postgres unicode printing fix from Artyom Shalkhakov diff -r 3683d1a8c1c8 -r 79c0c22e13ae src/c/urweb.c --- 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