Skip to content

Add tests for bogus handling of UTF-16#672

Open
WhyNotHugo wants to merge 1 commit into
zk-org:devfrom
WhyNotHugo:utf16
Open

Add tests for bogus handling of UTF-16#672
WhyNotHugo wants to merge 1 commit into
zk-org:devfrom
WhyNotHugo:utf16

Conversation

@WhyNotHugo

Copy link
Copy Markdown
Contributor

These need review, but I'm pretty sure that the tests are correct and that our logic is broken for these edge cases.

These need review, but I'm pretty sure that the tests are correct and
that our logic is broken for these edge cases.
@tjex

tjex commented Mar 21, 2026

Copy link
Copy Markdown
Member

Had an initial look. I think I'm following along with the tests correctly... But I'm not so knowledgeable in the underlying issue of byte offsetting.. So it's confidence on shaky legs. Most likely your tests are correct though, and the underlying function implementation is buggy.

I'm pretty sure this offset solution was added in #317 (or this at least touched the underlying code meaningfully).

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.

2 participants