- Notifications
You must be signed in to change notification settings - Fork22
fix(fix-flaws): handle UTF-8 characters and HTML entities#395
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Open
caugner wants to merge8 commits intomainChoose a base branch fromfix-flaws
base:main
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Open
Changes from1 commit
Commits
Show all changes
8 commits Select commitHold shift + click to select a range
ef4b522 fix: correct byte/character inconsistency in column position handling
caugner01f8a9b fix(position_utils): handle byte offsets not on UTF-8 char boundaries
caugnerec51a06 fix(tools): handle UTF-8 character boundaries in fix-flaws
caugner9da582b refactor(fix): improve href search precision and error diagnostics
caugnerd2b3108 fix(fix-flaws): decode HTML entities in hrefs and suggestions
caugnerabfc030 ci(test): add workflow with fix-flaws job
caugner7b5e1cc style(clippy): fix issues
caugner2153d60 ci(test): show fix-flaws changes
caugnerFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
NextNext commit
fix: correct byte/character inconsistency in column position handling
Fix critical bug where byte offsets and character positions were mixedthroughout the codebase, causing incorrect position reporting for contentwith multi-byte UTF-8 characters (emojis, accented characters, etc.).Changes:- Add position_utils module with byte ↔ character conversion functions- Fix render.rs bug mixing character count with byte offset in end_col- Convert Issue byte columns to DisplayIssue character columns for output- Update actual_offset to convert character positions back to bytes- Improve char boundary checking with proper warnings- Document all position fields as bytes (internal) or characters (display)- Verify Comrak uses byte-based sourcepos (1-based)- Add comprehensive UTF-8 tests with emojis and accented charactersAll 153 existing tests pass. The fix ensures correct position handlingthroughout: tree-sitter/Comrak (bytes) → Issue (bytes) → DisplayIssue(characters) → file operations (bytes).
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commitef4b52248cee2d3ba552cdfc0dfbf0c191822855
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.