diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-01-26 06:55:29 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-01-26 06:55:29 +0000 |
commit | 4e2e99997a2890df8ab5d7b86646a2b067eb8723 (patch) | |
tree | 30c16b2a54b2c166e03f136f4bd99a13db915032 /manual | |
parent | c36897fb5bef95d586557f960840ee0c614adabf (diff) | |
download | glibc-4e2e99997a2890df8ab5d7b86646a2b067eb8723.zip glibc-4e2e99997a2890df8ab5d7b86646a2b067eb8723.tar.gz glibc-4e2e99997a2890df8ab5d7b86646a2b067eb8723.tar.bz2 |
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.
Diffstat (limited to 'manual')
-rw-r--r-- | manual/stdio.texi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/manual/stdio.texi b/manual/stdio.texi index 882494c..98c4de7 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. |