lib_fgets: don't check for printability, as it doesn't allow to work with extended ASCII

This commit is contained in:
Alexander Vasiljev 2021-04-07 12:05:27 +03:00 committed by Alan Carvalho de Assis
parent bfbe705e3f
commit 74230c5371

View File

@ -216,11 +216,9 @@ FAR char *lib_fgets(FAR char *buf, size_t buflen, FILE *stream,
}
}
/* Otherwise, check if the character is printable and, if so, put the
* character in the line buffer
*/
/* Otherwise, put the character in the line buffer */
else if (isprint(ch))
else
{
buf[nch++] = ch;