Skip to content
Myr

char32: mbsntoc32() and c32ntombs() returns a size_t, not a char32_t

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Closes #337

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 53c43e4 · Browse files · 2 files+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−2 removed

  • other:+4 added−2 removed

2 files+4 added−2 removed

modified:CHANGELOG.md+2 added
32 unmodified lines
33### Removed34### Fixed3536* PNG images being way too dark.37* Crash when the cache contains strings that are not valid in the38 current locale ([#337][337]).394041### Security42### Contributors
648 unmodified lines
modified:char32.c+2 added-2 removed
107 unmodified lines
108done:109 return chars;110111err:112 return (char32_t)-1;112 return (size_t)-1;113}114115size_t116mbstoc32(char32_t *dst, const char *src, size_t len)
43 unmodified lines
160done:161 return bytes;162163err:164 return (char32_t)-1;164 return (size_t)-1;165}166167size_t168c32tombs(char *dst, const char32_t *src, size_t len)
114 unmodified lines