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

qrdectxt: Fix Big5 pre-validation #291

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tormodvolden
Copy link

The second byte was checked independently of the first, which leaves a checkerboard of false positives and negatives.

Note that I separated the user-defined ranges from the non-user-defined ranges for possible future enhancements (like only using the latter) but they are both treated the same.

Correct the range checking to evaluate both bytes together.

The ranges are from the table at https://en.wikipedia.org/wiki/Big5

References mchehab#281

Signed-off-by: Tormod Volden <[email protected]>
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.

1 participant