-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
zed cli column index broken on non ascii #43329
Copy link
Copy link
Labels
.contrib/good first issueIssue suitable for first-time contributorsIssue suitable for first-time contributorsarea:cliCommand-line interface feedbackCommand-line interface feedbackfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usageBugs that happen for at least a third of the users across all platforms and kinds of usagenever staleto keep the stalebot awayto keep the stalebot awaypriority:P2Average run-of-the-mill bugsAverage run-of-the-mill bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduceVerified steps to reproduce included and someone on the team managed to reproduce
Metadata
Metadata
Assignees
Labels
.contrib/good first issueIssue suitable for first-time contributorsIssue suitable for first-time contributorsarea:cliCommand-line interface feedbackCommand-line interface feedbackfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usageBugs that happen for at least a third of the users across all platforms and kinds of usagenever staleto keep the stalebot awayto keep the stalebot awaypriority:P2Average run-of-the-mill bugsAverage run-of-the-mill bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduceVerified steps to reproduce included and someone on the team managed to reproduce
Type
Fields
Give feedbackNo fields configured for Bug.
Summary
zed /some/path/to/a/file.cpp:line:columnopens on a wrong column if file text is non ASCII. With ASCII content offset takes correctly.Description
Steps to reproduce:
zed /some/path/to/a/файл.cpp:1:10Expected Behavior:
Zed opens correct file under path on the first line with column offset == 9.
Actual Behavior:
Zed opens correct file under path on the correct line, offset in column will be kinda twice lower than expected (it's 4 when column==10).
Zed Version and System Specs
Zed: v0.213.3 (Zed)
OS: macOS 26.1
Memory: 16 GiB
Architecture: aarch64
If applicable, attach your
Zed.logfile to this issue.Test file content: