You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix env_exists for environment values longer than one byte #423
bugA problem that causes incorrect behavior or crashes.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
std::env::env_exists currently uses a two-byte destination buffer and treats every negative env_get result as “not present”. Any environment value longer than one byte therefore produces the buffer-too-small result and is incorrectly reported as absent.
Relevant code
std/env/environ.wave
std/env/parse.wave
Scope
Make presence detection independent of the destination capacity needed to copy the value. Preserve the existing public API and integer error conventions unless a small internal helper is needed.
Acceptance criteria
A missing key returns false.
An empty value returns true.
One-byte and multi-byte values return true.
Presence detection does not require copying the full value.
Regression coverage is added to the Wave test corpus.
Existing standard-library examples and native CI targets continue to pass.
bugA problem that causes incorrect behavior or crashes.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
Activity