diff options
author | tjr <tjr@FreeBSD.org> | 2002-08-13 09:30:41 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-08-13 09:30:41 +0000 |
commit | 294097ed71af31961af5ded01883a93b24152d52 (patch) | |
tree | b19b15290ce2e0d3c58bac59a2bcb0295e1af757 /lib/libc/stdio/findfp.c | |
parent | 7c34d7b587ec98f831771925fdf5ef8569a2139a (diff) | |
download | FreeBSD-src-294097ed71af31961af5ded01883a93b24152d52.zip FreeBSD-src-294097ed71af31961af5ded01883a93b24152d52.tar.gz |
Basic support for wide character I/O: getwc(), fgetwc(), getwchar(),
putwc(), fputwc(), putwchar(), ungetwc(), fwide().
Diffstat (limited to 'lib/libc/stdio/findfp.c')
-rw-r--r-- | lib/libc/stdio/findfp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc/stdio/findfp.c b/lib/libc/stdio/findfp.c index 8b7517a..40a2a04 100644 --- a/lib/libc/stdio/findfp.c +++ b/lib/libc/stdio/findfp.c @@ -176,6 +176,12 @@ found: fp->_lb._base = NULL; /* no line buffer */ fp->_lb._size = 0; /* fp->_lock = NULL; */ /* once set always set (reused) */ + fp->_extra->orientation = 0; +#ifdef notdef + /* Stateful encoding/decoding is not yet supported. */ + memset(&fp->_extra->wstate, 0, sizeof(mbstate_t)); + memset(&fp->_extra->rstate, 0, sizeof(mbstate_t)); +#endif return (fp); } |