Skip to content

fix: stop ISBN-10/ISSN digits from truncating EAN-13 payload - #265

Closed
santhreal wants to merge 2 commits into
WhyNotHugo:mainfrom
santhreal:fix/isxn-ean-digits-poison
Closed

fix: stop ISBN-10/ISSN digits from truncating EAN-13 payload#265
santhreal wants to merge 2 commits into
WhyNotHugo:mainfrom
santhreal:fix/isxn-ean-digits-poison

Conversation

@santhreal

Copy link
Copy Markdown
Contributor

barcode.isxn.ISBN10/ISSN.init hits DataLoss when subclass digits overrides EAN13.digits truncating get_fullcode. This PR fixes the regression with a focused test covering the case.

Subclass digits overrode EuropeanArticleNumber13.digits, so get_fullcode()
returned a truncated barcode while str() still showed the correct ISBN/ISSN.
@WhyNotHugo

Copy link
Copy Markdown
Owner

Applied, thanks.

@WhyNotHugo WhyNotHugo closed this Jul 27, 2026
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