about summary refs log tree commit diff
path: root/libio
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-06-13 02:55:54 +0000
committerUlrich Drepper <drepper@redhat.com>2000-06-13 02:55:54 +0000
commitff048a13e5d2c971de0275c30b4d55c4ed2a2abf (patch)
tree38d5eda4f01a3d9128efa64149e8d48e8649f0f4 /libio
parent0aaf6d96f8fdb4a64850ea8b24e3c9e73742f5d6 (diff)
downloadglibc-ff048a13e5d2c971de0275c30b4d55c4ed2a2abf.tar.gz
glibc-ff048a13e5d2c971de0275c30b4d55c4ed2a2abf.tar.xz
glibc-ff048a13e5d2c971de0275c30b4d55c4ed2a2abf.zip
Update.
	* libio/iofwide.c (_IO_fwide): Initialize transliteration part of
	step data structure.
	* wcsmbs/btowc.c: Likewise.
	* wcsmbs/mbrtowc.c: Likewise.
	* wcsmbs/mbsnrtowcs.c: Likewise.
	* wcsmbs/mbsrtowcs.c: Likewise.
	* wcsmbs/wcrtomb.c: Likewise.
	* wcsmbs/wcsnrtombs.c: Likewise.
	* wcsmbs/wcsrtombs.c: Likewise.
	* wcsmbs/wctob.c: Likewise.
Diffstat (limited to 'libio')
-rw-r--r--libio/iofwide.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libio/iofwide.c b/libio/iofwide.c
index 5ca0a84f0d..bb26dddc85 100644
--- a/libio/iofwide.c
+++ b/libio/iofwide.c
@@ -124,6 +124,9 @@ _IO_fwide (fp, mode)
 	cc->__cd_in.__cd.__data[0].__internal_use = 1;
 	cc->__cd_in.__cd.__data[0].__flags = __GCONV_IS_LAST;
 	cc->__cd_in.__cd.__data[0].__statep = &fp->_wide_data->_IO_state;
+	/* XXX For now no transliteration.  */
+	memset (&cc->__cd_in.__cd.__data[0].__trans, '\0',
+		sizeof (struct __gconv_trans_data));
 
 	cc->__cd_out.__cd.__nsteps = 1; /* Only one step allowed.  */
 	cc->__cd_out.__cd.__steps = fcts.tomb;
@@ -132,6 +135,9 @@ _IO_fwide (fp, mode)
 	cc->__cd_out.__cd.__data[0].__internal_use = 1;
 	cc->__cd_out.__cd.__data[0].__flags = __GCONV_IS_LAST;
 	cc->__cd_out.__cd.__data[0].__statep = &fp->_wide_data->_IO_state;
+	/* XXX For now no transliteration.  */
+	memset (&cc->__cd_out.__cd.__data[0].__trans, '\0',
+		sizeof (struct __gconv_trans_data));
       }
 #else
 # error "somehow determine this from LC_CTYPE"