Skip to content

Finish support for non-UTF-8 source files#842

Merged
reese merged 3 commits intotrunkfrom
reese-finish-encoding
Mar 17, 2026
Merged

Finish support for non-UTF-8 source files#842
reese merged 3 commits intotrunkfrom
reese-finish-encoding

Conversation

@reese
Copy link
Collaborator

@reese reese commented Mar 17, 2026

Closes #832

This updates all of the string conversion internals to operate on Vec<u8> instead of String. This is a bit of a big change, but it's all intertwined and is easiest to change all at once, and the change is generally mechanical. This also gets rid of the last usages of loc_to_str and u8_to_str and removes them both.

Copy link
Collaborator

@froydnj froydnj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat!

@reese reese merged commit c3e462a into trunk Mar 17, 2026
8 checks passed
@reese reese deleted the reese-finish-encoding branch March 17, 2026 18:00
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.

Files not encoded with valid UTF-8 cannot be formatted

2 participants