Fix getwc* and putwc* on non-wide streams.

(cherry picked from commit df1934daa7788ca5f19d82efb02cdf9b9c495b1a)
2 files changed