commit | 9d00799905c35294f748fe9450d5d88c43fe5e5a | [log] [tgz] |
---|---|---|
author | Kirill Makurin <maiddaisuki@outlook.com> | Wed Jul 09 17:58:19 2025 +0900 |
committer | LIU Hao <lh_mouse@126.com> | Sat Jul 12 16:57:59 2025 +0800 |
tree | 793b0a897a1c5e8c39e5c2cc286da990152fe03f | |
parent | 15d2079a0376ddc7657946f415a9d9196bdd91d0 [diff] |
crt: always use replacements for btowc and wctob CRT's wctob sign-extends its return value if value of converted single-byte character is outside of range [0,127]. This behavior makes it impossible to distinguish failure from success if value of converted character is 255 (when sign-extended, same as EOF). Signed-off-by: Kirill Makurin <maiddaisuki@outlook.com>