mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Fix SF bug #1072182, problems with signed characters.
Most of these can be backported.
This commit is contained in:
parent
5d0ad50f5a
commit
30b5c5d011
11 changed files with 16 additions and 14 deletions
|
@ -463,7 +463,7 @@ os2_formatmsg(char *msgbuf, int msglen, char *reason)
|
|||
if (strlen(msgbuf) > 0) { /* If Non-Empty Msg, Trim CRLF */
|
||||
char *lastc = &msgbuf[ strlen(msgbuf)-1 ];
|
||||
|
||||
while (lastc > msgbuf && isspace(*lastc))
|
||||
while (lastc > msgbuf && isspace(Py_CHARMASK(*lastc)))
|
||||
*lastc-- = '\0'; /* Trim Trailing Whitespace (CRLF) */
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue