xim-rs
xim-rs copied to clipboard
fix: xim-ctext: Fix decode macro to track bytes
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.