Skip to content
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

Correct return parameter order; fix rune counts #489

Merged
merged 3 commits into from
May 4, 2023
Merged

Correct return parameter order; fix rune counts #489

merged 3 commits into from
May 4, 2023

Conversation

paul-lalonde
Copy link
Collaborator

Fix #487; possibly also #470

@codecov
Copy link

codecov bot commented May 2, 2023

Codecov Report

Merging #489 (30cb77d) into master (a73e1fe) will not change coverage.
The diff coverage is 0.00%.

❗ Current head 30cb77d differs from pull request most recent head 02b9f2b. Consider uploading reports for the commit 02b9f2b to get more accurate results

@@           Coverage Diff           @@
##           master     #489   +/-   ##
=======================================
  Coverage   58.48%   58.48%           
=======================================
  Files          54       54           
  Lines       10761    10761           
=======================================
  Hits         6294     6294           
  Misses       4032     4032           
  Partials      435      435           
Impacted Files Coverage Δ
exec.go 38.06% <0.00%> (ø)

@paul-lalonde paul-lalonde requested a review from rjkroege May 2, 2023 02:25
exec.go Outdated
if aa != "" {
t.w.Eventf("%c0 0 0 %d %v\n", c, len(aa), aa)
t.w.Eventf("%c0 0 0 %d %v\n", c, len([]rune(aa)), aa)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

And now I'm not sure about this one. I'd like the interface across the channel to be counted in runes, not bytes. But I have only the evidence of win's implementation, and of Russ's acme port that this is the case.
We need tests.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok, carefully re-reading the man page, russ's go code, the original acme code, I believe that yes, the "number of characters" refers to runes, not bytes. But the rune counts change should be a separate CL. I'll split it off.

Copy link
Owner

@rjkroege rjkroege left a comment

Choose a reason for hiding this comment

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

That was an oops for one of us. 🙂

@rjkroege rjkroege merged commit 73ec48e into master May 4, 2023
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.

Event file writes sometimes have Location in Arg
3 participants