Page MenuHomeFreeBSD

uchar.h: add char8_t
ClosedPublic

Authored by fuz on Nov 27 2025, 5:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 15, 11:48 PM
Unknown Object (File)
Thu, Feb 26, 10:22 AM
Unknown Object (File)
Feb 17 2026, 2:05 PM
Unknown Object (File)
Feb 17 2026, 2:05 PM
Unknown Object (File)
Feb 5 2026, 9:48 PM
Unknown Object (File)
Jan 15 2026, 11:20 AM
Unknown Object (File)
Jan 9 2026, 10:28 PM
Unknown Object (File)
Jan 8 2026, 11:00 PM
Subscribers

Details

Summary

A type similar to char16 and char32_t, for compliance with C23.
The related type atomic_char8_t is added to stdatomic.h.
As char8_t is always unsigned char, I've skipped adding __char8_t.
This can be added, too, if desired.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 68891
Build 65774: arc lint + arc unit

Event Timeline

fuz requested review of this revision.Nov 27 2025, 5:59 PM

I'd be tempted to do separate commits, but it's not therrible if not. The change looks good to me.

This revision is now accepted and ready to land.Nov 28 2025, 6:54 AM
include/uchar.h
36

Isn't this missing #define _CHAR8_T_DECLARED?

include/uchar.h
36

Indeed—I'll fix that on commit.

This revision was automatically updated to reflect the committed changes.