Skip to content

Revert unnecessary "fix handling of unicode when counting codeblock lines" + document #30368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

mgsloan
Copy link
Contributor

@mgsloan mgsloan commented May 9, 2025

After merging #30364 I realized why it was unnecessary to fix the code, and was more efficient before. UTF-8 does not use the standard 0-127 ASCII range for multi-byte chars. So this reverts that change and documents why the code is valid.

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label May 9, 2025
@mgsloan mgsloan changed the title Revert fix handling of unicode when counting codeblock lines Revert unnecessary "fix handling of unicode when counting codeblock lines" + document May 9, 2025
@mgsloan mgsloan enabled auto-merge (squash) May 9, 2025 11:24
@mgsloan mgsloan merged commit 30f3efe into main May 9, 2025
22 of 23 checks passed
@mgsloan mgsloan deleted the revert-fix-handling-of-unicode-when-counting-codeblock-lines branch May 9, 2025 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant