This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/9674] mbtowc keeps internal state even for stateless encodings
- From: "bonzini at gnu dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 22 Dec 2008 10:14:27 -0000
- Subject: [Bug libc/9674] mbtowc keeps internal state even for stateless encodings
- References: <20081219010845.9674.bruno@clisp.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From bonzini at gnu dot org 2008-12-22 10:14 -------
For completeness, I will add that this requirement is also present in ISO C at
the beginning of 7.20.7 (outside 7.20.7.2 which is where mbtowc is defined).
OTOH, the fact that "For a state-dependent encoding, each function is placed
into its initial state by a call for which its character pointer argument, s, is
a null pointer" does not imply that an implementation cannot do the same for
state-independent encodings too...
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |bonzini at gnu dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=9674
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.