Logic error in previous: don't exit the loop when an incomplete multibyte
sequence is detected.
This commit is contained in:
parent
b1b1af8b95
commit
bb655f01d3
@ -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