diff options
author | Adam Chlipala <adam@chlipala.net> | 2013-07-17 09:09:48 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2013-07-17 09:09:48 -0400 |
commit | 84d4e04816eb8980f3d4eca2f93249cb97003498 (patch) | |
tree | ccf9d6428d47b7a72b33f2b7d471197d5218c630 /src | |
parent | 8b8f84b0f0c107184a670f8a152b3b7a99796243 (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 |