This commit is contained in:
Kovid Goyal 2024-05-09 13:54:14 +05:30
parent 468d0c69a6
commit 1f3afd95f3
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -86,7 +86,7 @@ static bool
write_control_ch(Shlex *self) {
if (self->src_pos >= self->src_sz) { PyErr_SetString(PyExc_ValueError, "Trailing \\c escape at end of input data"); return false; }
Py_UCS4 ch = read_ch(self);
write_ch(self, ch & 31);
write_ch(self, ch & 0x1f);
return true;
}