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

Fix rules update script to handle unicode properly #320

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yssrku
Copy link

@yssrku yssrku commented Apr 4, 2024

This patch fixes to underlying issue of #310
Uint8Array from request was converted to string prematurely, this cause issue if the chunk cuts off within a multi byte character.

yssrku added 2 commits April 4, 2024 14:46
Bad encoding are caused by converting from Uint8Array to string
prematurely, this patch offloads line splitting / string decoding to split2.

Fixes lupomontero#310
@yssrku yssrku changed the title Fix rules script update to handle unicode properly Fix rules update script to handle unicode properly Apr 4, 2024
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.

1 participant