aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-01-19 00:38:35 +0000
committerUlrich Drepper <drepper@redhat.com>2006-01-19 00:38:35 +0000
commita815c3ab359e99edc5d44934a0d00467a9a16bad (patch)
tree5cabe97a5ad3befe5e06e5a724d4b86576295750 /libio
parent74f4264b7d673232f8b1cb08161fc0ae58ef5b6c (diff)
downloadglibc-a815c3ab359e99edc5d44934a0d00467a9a16bad.zip
glibc-a815c3ab359e99edc5d44934a0d00467a9a16bad.tar.gz
glibc-a815c3ab359e99edc5d44934a0d00467a9a16bad.tar.bz2
(_IO_new_file_fopen): If ,ccs= is given, also set vtable to the wide vtable.
Diffstat (limited to 'libio')
-rw-r--r--libio/fileops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libio/fileops.c b/libio/fileops.c
index 74d5cd0..cf7fd65 100644
--- a/libio/fileops.c
+++ b/libio/fileops.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1995, 1997-2004, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1995, 1997-2005, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Written by Per Bothner <bothner@cygnus.com>.
@@ -399,6 +399,9 @@ _IO_new_file_fopen (fp, filename, mode, is32not64)
/* And now the transliteration. */
cc->__cd_out.__cd.__data[0].__trans = &__libio_translit;
+ /* From now on use the wide character callback functions. */
+ ((struct _IO_FILE_plus *) fp)->vtable = fp->_wide_data->_wide_vtable;
+
/* Set the mode now. */
result->_mode = 1;
}