]> Savannah Git Hosting - gnulib.git/commit
mbiter, mbfile, mbmemcasecoll: Improve handling of mbrtoc32 result.
authorBruno Haible <bruno@clisp.org>
Tue, 4 Jul 2023 19:04:00 +0000 (21:04 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 4 Jul 2023 19:04:00 +0000 (21:04 +0200)
commite7eb4c68af1c567a690fd985567a2acb0d07e5af
treee43b0fadc6e9d3f855f39e74b32d36f6b93163aa
parent79401f493421f0de38a5184b81f92f551202506d
mbiter, mbfile, mbmemcasecoll: Improve handling of mbrtoc32 result.

* lib/mbiter.h (mbi_avail): If cur.ptr has reached the limit but
in_shift is true, call mbiter_multi_next.
(mbiter_multi_next): Set in_shift to false after an incomplete multibyte
character.
* lib/mbfile.h (mbfile_multi_getc): Pass the input bytes incrementally
into mbrtoc32. When mbf->state is not in the initial state, call
mbrtoc32 again.
* lib/mbmemcasecoll.c (apply_c32tolower): When the state is not in the
initial state, call mbrtoc32 again.
ChangeLog
lib/mbfile.h
lib/mbiter.h
lib/mbmemcasecoll.c