Skip to content

fix utf8 parsing in custom script#159

Merged
tatsumoto-ren merged 3 commits intoAjatt-Tools:masterfrom
mosaic-roll:custom
Feb 12, 2026
Merged

fix utf8 parsing in custom script#159
tatsumoto-ren merged 3 commits intoAjatt-Tools:masterfrom
mosaic-roll:custom

Conversation

@mosaic-roll
Copy link
Copy Markdown
Contributor

Sorry for this PR... There's a minor bug that won't affect much, but it's better to fix it, though.

@mosaic-roll
Copy link
Copy Markdown
Contributor Author

mosaic-roll commented Feb 12, 2026

Althought the bug is minor, it is caused by the nightmare of parsing utf8 manually in this custom script. A refactor of this logic should be better for an example script...

@tatsumoto-ren
Copy link
Copy Markdown
Member

the nightmare of parsing utf8 manually

We have the utf8_iter function in helpers.lua which helps parsing utf8.

@tatsumoto-ren tatsumoto-ren merged commit 441dc97 into Ajatt-Tools:master Feb 12, 2026
@mosaic-roll
Copy link
Copy Markdown
Contributor Author

We have the utf8_iter function in helpers.lua which helps parsing utf8.

Unfortunately this a custom script that cannot use the helper function directly.
And I forgot to check helpers.lua for this.
:<

@tatsumoto-ren
Copy link
Copy Markdown
Member

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