commit | b79193f92c1c52e439d6ac02947a032004fb1ca4 | [log] [tgz] |
---|---|---|
author | Pali Rohár <pali.rohar@gmail.com> | Fri Aug 15 23:28:46 2025 +0200 |
committer | Martin Storsjö <martin@martin.st> | Wed Aug 20 23:48:26 2025 +0300 |
tree | 2e7f74defcf76f78f7f8947ce8da8566805ce14e | |
parent | 2b9b80b9ef4e68f4cec55062d1865bb56c6c001e [diff] |
crt: Remove static helper function mbrtowc_cp() Both users of this function (mbrlen and mbrtowc) calls it with the current locale and maximum character length for current locale. So replace the mbrtowc_cp() usage in mbrlen() directly by mbrtowc(). Also replace MB_CUR_MAX macro by the ___mb_cur_max_func() function to show that the maximum character length depends on the locale and is not a constant value. Signed-off-by: Martin Storsjö <martin@martin.st>