Skip to content

Conversation

@npmania
Copy link
Contributor

@npmania npmania commented Apr 29, 2024

In current implementation of decode! macro, length of bytes read returned by encoding_rs::Decoder::decode_to_string (link) is not used, causing early part of japanese string to be repeated.
This commit fixes invalid behavior by using previously mentioned length value to prevent decoding certain part of bytes multiple times.

In current implementation of decode! macro, length of bytes read
returned by encoding_rs::Decoder::decode_to_string is not used,
causing early part of japanese string to be repeated.
This commit fixes invalid behavior by using previously mentioned length
value to prevent decoding certain part of bytes multiple times.

Signed-off-by: npmania <[email protected]>
@Riey Riey merged commit 9ec8406 into Riey:master Oct 17, 2025
0 of 3 checks passed
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