From 4e2e99997a2890df8ab5d7b86646a2b067eb8723 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 26 Jan 2000 06:55:29 +0000 Subject: Update. * libio/fileops.c (_IO_new_file_open): Recognize ,ccs= in mode string and load appropriate conversions. * libio/iofwide.c (__libio_codecvt): Renamed from libio_codecvt and made global. * libio/libioP.h: Declare __libio_codecvt. * manual/stdio.texi: Document ,ccs= option for fopen. * wcsmbs/wcsmbsload.c (__wcsmbs_named_conv): New function. * wcsmbs/wcsmbsload.h (__wcsmbs_named_conv): Declare. * libio/iofclose.c: Free conversion data if stream was wide-oriented. * sysdeps/unix/sysv/linux/i386/Dist: Add sys/io.h. --- manual/stdio.texi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'manual/stdio.texi') diff --git a/manual/stdio.texi b/manual/stdio.texi index 882494cb7b..98c4de7e13 100644 --- a/manual/stdio.texi +++ b/manual/stdio.texi @@ -206,6 +206,21 @@ difference in POSIX systems (including the GNU system). If both @samp{+} and @samp{b} are specified, they can appear in either order. @xref{Binary Streams}. +@cindex stream orientation +@cindex orientation, stream +If the @var{opentype} string contains the sequence +@code{,ccs=@var{STRING}} then @var{STRING} is taken as the name of a +coded character set and @code{fopen} will mark the stream as +wide-oriented which appropriate conversion functions in place to convert +from and to the character set @var{STRING} is place. Any other stream +is opened initially unoriented and the orientation is decided with the +first file operation. If the first operation is a wide character +operation, the stream is not only marked as wide-oriented, also the +conversion functions to convert to the coded character set used for the +current locale are loaded. This will not change anymore from this point +on even if the locale selected for the @code{LC_CTYPE} category is +changed. + Any other characters in @var{opentype} are simply ignored. They may be meaningful in other systems. -- cgit 1.4.1