Skip to content

fix(es): Fix unicode handling#10734

Draft
kdy1 wants to merge 2 commits intomainfrom
kdy1/unicode
Draft

fix(es): Fix unicode handling#10734
kdy1 wants to merge 2 commits intomainfrom
kdy1/unicode

Conversation

@kdy1
Copy link
Copy Markdown
Member

@kdy1 kdy1 commented Jun 30, 2025

Description:

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Jun 30, 2025

CodSpeed Performance Report

Merging #10734 will not alter performance

Comparing kdy1/unicode (8bad4cf) with main (38132e0)

Summary

✅ 140 untouched benchmarks

op(self, &mut buf)
}

fn read_unicode_escape(&mut self) -> LexResult<Vec<Char>> {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

cc @bvanjoi Do you think this change is correct?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If I understand correctly, this implementation appears incorrect. For read_unicode_escape('\u0041'), we expect the raw character sequence ['\\', 'u', '0', '0', '4', '1'] as output, not the decoded 'A' directly.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thank you! I think you are right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants