Logic error in previous: don't exit the loop when an incomplete multibyte
sequence is detected.
This commit is contained in:
parent
3bf99ddf54
commit
7d203a48a9
@ -61,7 +61,7 @@ fgetwc(FILE *fp)
|
||||
return (wc);
|
||||
else if (nconv == 0)
|
||||
return (L'\0');
|
||||
else if (nconv == (size_t)-2 || nconv == (size_t)-1)
|
||||
else if (nconv == (size_t)-1)
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user