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

1615: Fix bug in getCJKAdjustedLength() that double counts supplement… #1616

Commits on Mar 2, 2022

  1. 1615: Fix bug in getCJKAdjustedLength() that double counts supplement…

    …ary code points
    
    getCJKAdjustedLength calculates the column width of text strings.
    
    But it operates on chars which causes it to double count supplementary code
    points. Supplimentary code points have a high and a low code unit(char).
    
    This commit reworks this logic to be based on code points. The code assembles
    the code points by hand as String.codePoints() was only added in 1.8 and
    picocli has a source level of 1.5
    gwalbran authored and remkop committed Mar 2, 2022
    Configuration menu
    Copy the full SHA
    843b1bb View commit details
    Browse the repository at this point in the history