]> Savannah Git Hosting - gnulib.git/commit
mbrlen, mbrtowc: fix bug with empty input
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 16 May 2014 20:56:00 +0000 (13:56 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 16 May 2014 20:56:26 +0000 (13:56 -0700)
commit2a045bc38f853c02f682c710b8d69bd465719b26
tree2cf341cb64709c332d337d0f0e697bf1d8174004
parent6a26d6cbe963a8234538201e9a3b2261243d7e27
mbrlen, mbrtowc: fix bug with empty input

* lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
* m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
so this is mainly for documentation.
* m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
(gl_FUNC_MBRTOWC): Use it.
* tests/test-mbrtowc.c (main): Test for the bug.
ChangeLog
lib/mbrtowc.c
m4/mbrlen.m4
m4/mbrtowc.m4
tests/test-mbrtowc.c