diff options
author | 2013-07-17 09:09:48 -0400 | |
---|---|---|
committer | 2013-07-17 09:09:48 -0400 | |
commit | 0138eb40cff3bbd368fbad43b24774a08ed87237 (patch) | |
tree | ccf9d6428d47b7a72b33f2b7d471197d5218c630 /src | |
parent | 55889be0ddcf3426ba2c9ee4ddfca1998dde0e4f (diff) |
Postgres unicode printing fix from Artyom Shalkhakov
Diffstat (limited to 'src')
-rw-r--r-- | src/c/urweb.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |