From 0138eb40cff3bbd368fbad43b24774a08ed87237 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Wed, 17 Jul 2013 09:09:48 -0400 Subject: Postgres unicode printing fix from Artyom Shalkhakov --- src/c/urweb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/c/urweb.c') diff --git a/src/c/urweb.c b/src/c/urweb.c index 61fee786..0b4b5846 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -2451,7 +2451,7 @@ uw_Basis_string uw_Basis_sqlifyString(uw_context ctx, uw_Basis_string s) { 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 @@ uw_Basis_string uw_Basis_sqlifyChar(uw_context ctx, uw_Basis_char c) { if (isprint((int)c)) *s2++ = c; else if (uw_Estrings) { - sprintf(s2, "\\%03o", c); + sprintf(s2, "\\%03o", (unsigned char)c); s2 += 4; } else -- cgit v1.2.3