fix fgetwc when decoding a character that crosses buffer boundary
authorSzabolcs Nagy <nsz@port70.net>
Sat, 18 Nov 2017 16:51:48 +0000 (17:51 +0100)
committerRich Felker <dalias@aerifal.cx>
Sun, 19 Nov 2017 01:11:08 +0000 (20:11 -0500)
commit72656157f54c47277b01ec85a6ba7c4084fea6c8
tree971a42bacaaae0a5f48f3b72d59ad6b7aeae3666
parenta223dbd27ae36fe53f9f67f86caf685b729593fc
fix fgetwc when decoding a character that crosses buffer boundary

Update the buffer position according to the bytes consumed into st when
decoding an incomplete character at the end of the buffer.
src/stdio/fgetwc.c