Commit 11326de6 authored by Marc-André Lemburg's avatar Marc-André Lemburg

Fix for bug #485951: repr diff between string and unicode.

parent d4c0a9c5
......@@ -1833,7 +1833,7 @@ PyObject *unicodeescape_string(const Py_UNICODE *s,
}
/* Map non-printable US ASCII to '\xhh' */
else if (ch < ' ' || ch >= 128) {
else if (ch < ' ' || ch >= 0x7F) {
*p++ = '\\';
*p++ = 'x';
*p++ = hexdigit[(ch >> 4) & 0x000F];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment