Skip to content

fix: use the encoded byte count for the PDF417 byte shift - #101

Merged
hschimke merged 2 commits into
rxing-core:mainfrom
tleish:fix/pdf417-byte-shift-multibyte
Sep 16, 2026
Merged

hschimke merged 2 commits into
rxing-core:mainfrom
tleish:fix/pdf417-byte-shift-multibyte

Conversation

@tleish

@tleish tleish commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Relates to #100.

Updating the conditionals that decide whether a character can go out as a single byte is
counting characters instead of bytes. With something like é that's two bytes in
UTF-8, only the first one gets written, and the rest of the message goes down
with it. This makes it count bytes the way ZXing does, and puts back the
bytes == null && b == 1 case that goes along with it.

@hschimke

Copy link
Copy Markdown
Collaborator

Thank you, reviewing and running integration now

@hschimke
hschimke merged commit 8b0e10e into rxing-core:main Sep 16, 2026
1 check 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