Skip to content

<cuchar>: mbrtoc8() and c8rtomb() are not yet implemented #2207

@StephanTLavavej

Description

@StephanTLavavej

WG21-N4892 [cuchar.syn] specifies:

size_t mbrtoc8(char8_t* pc8, const char* s, size_t n, mbstate_t* ps);
size_t c8rtomb(char* s, char8_t c8, mbstate_t* ps);

These functions are not yet implemented in the UCRT, so they aren't mentioned in our <cuchar>:

STL/stl/inc/cuchar

Lines 21 to 28 in d6f9987

_STD_BEGIN
using _CSTD mbstate_t;
using _CSTD size_t;
using _CSTD mbrtoc16;
using _CSTD c16rtomb;
using _CSTD mbrtoc32;
using _CSTD c32rtomb;
_STD_END

@amyw-msft filed internal task OS-25681113 "Implement mbrtoc8, c8rtomb" to implement them in the UCRT. Until then, changes to <cuchar> are blocked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UCRTRelated to the Universal CRTbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions