diff options
author | Rich Felker <dalias@aerifal.cx> | 2025-05-05 09:27:29 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2025-05-05 09:27:29 -0400 |
commit | 23febbd3c5d6b4e367faee4f39b8e8c3b95ab588 (patch) | |
tree | 6ef7c2822219bff630683b81f5056737d3ab80fb /crt/Scrt1.c | |
parent | 6915b34860459a963fb1ba468a4d5389dd65c67b (diff) | |
download | musl-23febbd3c5d6b4e367faee4f39b8e8c3b95ab588.tar.gz |
align mbsnrtowcs behavior on partial character with new requirements
POSIX 2024 added a requirement that mbsnrtowcs, like mbrtowc, consume
any final partial character and store it in the mbstate_t object
before returning. this was previously unspecified but documented as a
potential future change.
an internal mbstate_t object is added for the case where the argument
is a null pointer. previously this was not needed since no operations
could modify the internal object and not processing it at all gave the
same behavior "as if" there were an internal object.
Diffstat (limited to 'crt/Scrt1.c')
0 files changed, 0 insertions, 0 deletions