This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bug in mbrtowc


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   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]