From 476b6d7fa4b5e47b5f07431b8a1af05a17489040 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 26 Jul 2000 23:00:05 +0000 Subject: Update. 2000-07-26 Ulrich Drepper * libio/iofwide.c: Enable transliteration for conversion from wchar_t by default. * locale/C-ctype.c: Likewise. * wcsmbs/wcsmbsload.c: Likewise. --- libio/iofwide.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libio') diff --git a/libio/iofwide.c b/libio/iofwide.c index c0ee083029..ae4f63f454 100644 --- a/libio/iofwide.c +++ b/libio/iofwide.c @@ -35,6 +35,7 @@ # include # include # include +# include #endif @@ -76,6 +77,12 @@ struct _IO_codecvt __libio_codecvt = }; +static struct __gconv_trans_data libio_translit = +{ + .__trans_fct = __gconv_transliterate +}; + + /* Return orientation of stream. If mode is nonzero try to change the orientation first. */ #undef _IO_fwide @@ -134,7 +141,7 @@ _IO_fwide (fp, mode) cc->__cd_out.__cd.__data[0].__statep = &fp->_wide_data->_IO_state; /* XXX For now no transliteration. */ - cc->__cd_out.__cd.__data[0].__trans = NULL; + cc->__cd_out.__cd.__data[0].__trans = &libio_translit; } #else # error "somehow determine this from LC_CTYPE" -- cgit v1.2.3