aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-07-26 23:00:05 +0000
committerUlrich Drepper <drepper@redhat.com>2000-07-26 23:00:05 +0000
commit476b6d7fa4b5e47b5f07431b8a1af05a17489040 (patch)
tree46e456059fd0f6bb99f79ccdab352e0a092aa238 /libio
parent9f4fa5bc33f7c116e35e700b6ad2a3f5ab16a405 (diff)
downloadglibc-476b6d7fa4b5e47b5f07431b8a1af05a17489040.tar
glibc-476b6d7fa4b5e47b5f07431b8a1af05a17489040.tar.gz
glibc-476b6d7fa4b5e47b5f07431b8a1af05a17489040.tar.bz2
glibc-476b6d7fa4b5e47b5f07431b8a1af05a17489040.zip
Update.
2000-07-26 Ulrich Drepper <drepper@redhat.com> * libio/iofwide.c: Enable transliteration for conversion from wchar_t by default. * locale/C-ctype.c: Likewise. * wcsmbs/wcsmbsload.c: Likewise.
Diffstat (limited to 'libio')
-rw-r--r--libio/iofwide.c9
1 files changed, 8 insertions, 1 deletions
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 <langinfo.h>
# include <locale/localeinfo.h>
# include <wcsmbs/wcsmbsload.h>
+# include <iconv/gconv_int.h>
#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"