Skip to content

fix: make string whitespace locale-independent - #85

Merged
muhammadyusufpov merged 2 commits into
hyperlangg:mainfrom
Rayan-and-beyond:fix/ascii-whitespace-75
Sep 14, 2026
Merged

muhammadyusufpov merged 2 commits into
hyperlangg:mainfrom
Rayan-and-beyond:fix/ascii-whitespace-75

Conversation

@Rayan-and-beyond

Copy link
Copy Markdown
Contributor

Summary

  • replace locale-sensitive C isspace calls in strip, lstrip, rstrip, whitespace split(), and isspace() with one ASCII-only predicate
  • treat only space, tab, LF, CR, VT, and FF as whitespace in those paths
  • add a focused ci/ fixture covering all six bytes and compare hyper run with hyper compile

Validation

  • cargo test — 84 passed
  • ASCII whitespace fixture matches between hyper run and hyper compile on the default LLVM path
  • git diff --check

Closes #75

@muhammadyusufpov
muhammadyusufpov merged commit e0cd1a4 into hyperlangg:main Sep 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make strip and isspace locale-independent

2 participants