[scc-dev] [PATCH 0/3] Fix unicode handling

From: remph <lhr_at_disroot.org>
Date: Thu, 20 Feb 2025 19:32:18 +0000

Nice toolchain! Thanks for the software

libc wchar conversion functions (and dependents, like printf %lc and %ls)
had previously produced bogus output. This fixes that, plus a couple patches
necessary to build on glibc/Linux where I'm testing on

remph (3):
  make/posix: fix feature test macros
  libc/tests: add omitted headers, fix 0037-malloc's output so it passes
  libc: fix wchar unicode handling

 src/cmd/scc-make/posix.c | 2 +-
 src/libc/wchar/_validutf8.c | 2 +-
 src/libc/wchar/mbrtowc.c | 24 ++++++++---
 src/libc/wchar/wcrtomb.c | 7 +++-
 tests/libc/execute/.gitignore | 1 +
 tests/libc/execute/0035-setlocale.c | 1 +
 tests/libc/execute/0036-localeconv.c | 1 +
 tests/libc/execute/0037-malloc.c | 4 +-
 tests/libc/execute/0038-wchar.c | 61 ++++++++++++++++++++++++++++
 tests/libc/execute/libc-tests.lst | 1 +
 10 files changed, 95 insertions(+), 9 deletions(-)
 create mode 100644 tests/libc/execute/0038-wchar.c

-- 
2.48.1
--
To unsubscribe send a mail to scc-dev+unsubscribe_at_simple-cc.org
Received on Thu 20 Feb 2025 - 20:32:18 CET

This archive was generated by hypermail 2.3.0 : Thu 20 Feb 2025 - 20:40:01 CET