From 6f98fd7ebb025b6aa3731139c1897bd46a6278fb Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 3 Jul 2000 21:40:46 +0000 Subject: Update. 2000-07-03 Ulrich Drepper * libio/genops.c (__overflow): Use _IO_fwide to orient the stream. (__uflow): Likewise. (__underflow): Likewise. * libio/wgenops.c (__wunderflow): Likewise. * stdio-common/tst-unbputc.c: New file. * stdio-common/tst-unbputc.sh: New file. * stdio-common/Makefile: Add rules to build and run tst-unbputc. * po/en_GB.po: New file. Contributed by Robert Brady . --- libio/wgenops.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libio/wgenops.c') diff --git a/libio/wgenops.c b/libio/wgenops.c index f822c8d..242f3a0 100644 --- a/libio/wgenops.c +++ b/libio/wgenops.c @@ -272,6 +272,8 @@ __wunderflow (fp) if (fp->_mode < 0 || (fp->_mode == 0 && _IO_fwide (fp, 1) != 1)) return WEOF; + if (fp->_mode == 0) + _IO_fwide (fp, 1); if (_IO_in_put_mode (fp)) if (_IO_switch_to_wget_mode (fp) == EOF) return WEOF; -- cgit v1.1