This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: bug in mbrtowc
- To: Bruno Haible <haible at ilog dot fr>
- Subject: Re: bug in mbrtowc
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 22 May 2001 17:08:54 -0700
- Cc: libc-alpha at sources dot redhat dot com
- References: <15114.40015.756663.245233@honolulu.ilog.fr>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Bruno Haible <haible@ilog.fr> writes:
> ISO C 99 says that
> mbrtowc(NULL, NULL, 0, ps)
> is equivalent to
> mbrtowc(NULL, "", 1, ps)
> but in glibc they behave differently. Below is a test, where test1() succeeds
> and test2() fails, and a fix.
Thanks, I've applied the patch.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------