Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UPC_A's error message is wrong. #561

Open
dai-kanai opened this issue Mar 27, 2024 · 0 comments
Open

UPC_A's error message is wrong. #561

dai-kanai opened this issue Mar 27, 2024 · 0 comments

Comments

@dai-kanai
Copy link

ZXing.Windows.Compatibility.BarcodeWriter.Write throws an ArgumentException if the format is UPC_A and if the parameter 'contents' is "1234567890" for example.
The property 'Message' of the exception is "Requested contents should be 12 (without checksum digit) or 13 digits long, but got 11".
It should be "Requested contents should be 11 (without checksum digit) or 12 digits long, but got 10".

  • The first two fixed numbers are wrong.
  • The length of 'contents' is always wrongly added with one in the message.

Only the message is wrong.
Actually, It correctly generate a barcode for an 11 (12 including the check digit) digits number.

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

No branches or pull requests

1 participant