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.