Provide standard multibyte conversion headers #91

Manually merged
erikinkinen merged 19 commits from feature/standard-multibyte-headers into feature/current-locale-multibyte 2026-11-13 23:45:25 +01:00
Owner

Provide standard wchar.h and uchar.h entry points for the existing nineteen current-locale conversion functions. Both headers share the original declarations and 32-byte state; signed wchar_t, unsigned wint_t/WEOF and C/C++ scalar widths are checked explicitly.

The native thread/locale lifetime and conversion behavior are unchanged. These headers do not declare unimplemented wide-string, wide-stream or formatting functions, and do not supply stdlib.h or MB_CUR_MAX.

Depends on #88; follows the header work in #87.

  • Share the implemented declarations and exact types without host headers.
  • Preserve include order, repetition and original zero-state contracts.
  • Add owned freestanding C11/C++11/C++17 positive and negative controls.
  • Check freshly admitted libc++ wrapper inputs and document the missing generated runtime configuration.

The standard subset passes its declaration controls. The actual upstream wrappers still require a produced __config_site; no host configuration or missing wide-library declarations are substituted. This is not complete libc++ or EriX-hosted toolchain acceptance.

Provide standard wchar.h and uchar.h entry points for the existing nineteen current-locale conversion functions. Both headers share the original declarations and 32-byte state; signed wchar_t, unsigned wint_t/WEOF and C/C++ scalar widths are checked explicitly. The native thread/locale lifetime and conversion behavior are unchanged. These headers do not declare unimplemented wide-string, wide-stream or formatting functions, and do not supply stdlib.h or MB_CUR_MAX. Depends on #88; follows the header work in #87. - [x] Share the implemented declarations and exact types without host headers. - [x] Preserve include order, repetition and original zero-state contracts. - [x] Add owned freestanding C11/C++11/C++17 positive and negative controls. - [x] Check freshly admitted libc++ wrapper inputs and document the missing generated runtime configuration. The standard subset passes its declaration controls. The actual upstream wrappers still require a produced __config_site; no host configuration or missing wide-library declarations are substituted. This is not complete libc++ or EriX-hosted toolchain acceptance.
erikinkinen added this to the Alpha 1 milestone 2026-11-08 16:53:14 +01:00
feat: Provide standard multibyte conversion headers
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 10s
CI / memory (push) Failing after 2m11s
CI / thread (push) Successful in 2m22s
4ad77b41ba
Expose the implemented conversion subset through wchar.h and uchar.h with one shared declaration and state layout. Enforce the signed wide scalar and unsigned wide EOF ABI, preserve native thread and locale lifetime requirements, and retain explicit gaps for unimplemented wide-library and runtime configuration inputs.
test: Bind standard character types to compiler ABI
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 11s
CI / memory (push) Failing after 2m10s
CI / thread (push) Successful in 2m25s
698b9095b6
Require the C aliases to match the selected least-width integer types and retain exact scalar alignment. Include the compiler integer header before the conversion headers so existing standard limit macros cannot hide an incompatible declaration.
fix: Admit the genuine seven-member C runtime workspace
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 18s
CI / memory (push) Failing after 2m17s
CI / thread (push) Successful in 2m26s
a531c2986e
Retain the original thread runtime as an explicit seventh local package before the maintained Cargo matrix. Validate actual captured Cargo metadata and preserve missing, extra and foreign-path refusals; update exact feature and helper-cohort controls for the already selected source variants without accepting arbitrary dependencies or weakening source ownership.
Prepare the existing original Cargo source operation before full-crate direct Rust witnesses and retain its actual thread-runtime ABI library through their consumers. Keep the same complete Cargo matrix and explicit source selections; the standalone conversion checker acquires its own bounded operation from that snapshot.

(cherry picked from commit 4f5fef77d0)
Bind code and nonlinkable metadata files to the actual Cargo artifact and original producer before capture. Check and independently retire all original outputs without deriving companion paths or calling replaced receivers.

(cherry picked from commit 34e14f1037)
Register the original capture attempt before opening a reported Cargo output. An unreturned acquisition cannot be retired as an empty receiver or reopened by a later attempt.

(cherry picked from commit c0b3c9d88a)
Bind every output receiver to the original completed artifact selection and journal position before its initializer or file effects. Refuse path-only construction, repeated initialization and changed original registrations while retaining original close duties.

(cherry picked from commit 84121510d0)
Reject a replaced library selector before a consumer command or callback, even when the original output roster remains intact. Cleanup observes only the original journal before draining its original receivers.

(cherry picked from commit 984fe39d53)
Provide each originally reported code and metadata file as an explicit extern path. Compilers whose archives contain metadata stubs then receive the actual full metadata from the same retained production, without inferred files or changed embedding options.

(cherry picked from commit 515ea2cfbe)
Check original self registration before latching an observation failure or draining produced files. Copied dependency and output views cannot poison or close their actual original producer.

(cherry picked from commit 2c0c1de7e1)
Route thematic full-crate callers through the same original dependency owner as their library. Keep the actual extern metadata, dependency directory and fresh output checks throughout each compiler call so transitive crate loading does not fall back to an unowned lookup.

(cherry picked from commit 3420f7bf9b)
Match the intrinsic expected length directly when selecting the short-copy capacity. The debug callback must preserve its unchanged known and unknown error assertions without acquiring an out-of-line core slice-method dependency.

(cherry picked from commit fc2f4828da)
(cherry picked from commit 676f56d1a1)
Keep the saved compiler command subordinate to the original retained output lifetime. Document the shared dependency boundary and check that a withdrawn receiver refuses before source verification or native invocation.

(cherry picked from commit 0e4a1882d1)
Keep exact dependency and feature equality for this runtime: the inert thread dependency and current-locale edge already exist, while later string activation modes remain outside this feature.
Keep intentional Linux SIGILL controls from publishing uncontrolled core output. Change only each declared crash child, assert its actual limit and dumpability policy, and preserve the parent signal and generated-source closure requirements.

(cherry picked from commit d46538f25f)
(cherry picked from commit 1ee3b7b1c7)
Keep the existing acquisition orderings and update closures while using the renamed standard-library API. Identifier allocation and join-state claims retain their original exhaustion and once-only behavior without deprecated method warnings.

(cherry picked from commit a233f694aa)
Use the same standard-library rename for startup binding counts and locale references. Preserve the existing orderings, overflow limits and refusal closures.

(cherry picked from commit fbe840291f)
test: Keep directory fixture arrays concise under strict workspace checks
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / thread (push) Successful in 57s
CI / markdown (push) Successful in 3s
CI / memory (push) Failing after 1m55s
60e26ef204
Express the seven rejected literal byte arrays as equivalent fixed byte strings, preserving every malformed-directory case and its exact expected bytes without suppressing Clippy.

(cherry picked from commit c2a2cd5eb6)
fix: Keep checked atomic admission compatible with stable Rust
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / thread (push) Successful in 1m7s
CI / memory (push) Successful in 12m43s
41736f1714
Use compare-exchange loops for generation, borrow, lease and locale reader admission. Preserve the original success and failure orderings, old-value result and overflow refusal without requiring the unstable atomic_try_update API.
Author
Owner

Prepared the merge history at d4324a13 to remove duplicate upstream patches and integrate the feature on its prepared prerequisite history. The feature tree is unchanged.

Prepared the merge history at [d4324a13](https://git.erikinkinen.fi/erix/lib-cstd/commit/d4324a139270352302a6fd9e9ea352dbbfb756ad) to remove duplicate upstream patches and integrate the feature on its prepared prerequisite history. The feature tree is unchanged.
erikinkinen manually merged commit 8c78744ca9 into feature/current-locale-multibyte 2026-11-13 23:45:25 +01:00
Sign in to join this conversation.
No description provided.