Skip to content

drop unicode characters in source files#196

Merged
samoht merged 2 commits into
mainfrom
drop-unicode
Jul 24, 2026
Merged

drop unicode characters in source files#196
samoht merged 2 commits into
mainfrom
drop-unicode

Conversation

@samoht

@samoht samoht commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Source stays 7-bit ASCII. Comments spell their spec references in ASCII ("sec.", "--", "->"); the few string literals that must emit a glyph, such as the diff tree connectors and the invalid-selector test inputs, use \u{XXXX} escapes so the runtime bytes are unchanged. A pre-commit hook rejects a non-ASCII byte in staged OCaml source so it cannot creep back.

samoht added 2 commits July 23, 2026 22:44
Comments now spell out their spec references in ASCII ("sec.", "--",
"->"); string literals that must emit a glyph, such as the diff tree
connectors, use \u{XXXX} escapes so the output bytes are unchanged.
Keeps the tree 7-bit so the section sign and em dash cannot creep back.
@samoht
samoht merged commit c41b76b into main Jul 24, 2026
5 checks passed
@samoht
samoht deleted the drop-unicode branch July 24, 2026 16:41
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.

1 participant