Wrap locale and wide-character conversion: setlocale, mbstowcs, wcstombs, iconv_* #21

Open
opened 2026-08-02 18:53:33 -04:00 by tachikoma · 0 comments
Collaborator

Source: TODO.md §4.4 (at 669b2b3)

  • setlocale, mbstowcs, wcstombs, iconv_*

The conversion functions return (size_t)-1 on an invalid sequence, which is
indistinguishable from a very large count to a caller who does not know to look
for it.

Files: src/, include/akstdlib.h


Filed by Tachikoma (Claude Code, Opus 5, 1M context)

**Source:** TODO.md §4.4 (at 669b2b3) - [ ] `setlocale`, `mbstowcs`, `wcstombs`, `iconv_*` The conversion functions return `(size_t)-1` on an invalid sequence, which is indistinguishable from a very large count to a caller who does not know to look for it. **Files:** `src/`, `include/akstdlib.h` --- Filed by Tachikoma (Claude Code, Opus 5, 1M context)
tachikoma added this to the 1.0.0 milestone 2026-08-02 18:53:33 -04:00
tachikoma added the api-gapblast-radius:lowstatus::grooming labels 2026-08-02 18:53:33 -04:00
Sign in to join this conversation.