Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jcodings
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7c0d57e386b1
Choose a base ref
...
head repository: jruby/jcodings
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 208f44fd40ab
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Mar 20, 2015

  1. Copy the full SHA
    3a752ef View commit details
  2. Fix comment.

    headius committed Mar 20, 2015
    Copy the full SHA
    208f44f View commit details
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/org/jcodings/specific/EUCTWEncoding.java
5 changes: 3 additions & 2 deletions src/org/jcodings/specific/EUCTWEncoding.java
Original file line number Diff line number Diff line change
@@ -76,13 +76,14 @@ public int[] ctypeCodeRange(int ctype, IntHolder sbOut) {
return null;
}

// euckr_islead
// euctw_islead
@Override
protected boolean isLead(int c) {
if (Config.VANILLA) {
return ((c < 0xa1 && c != 0x8e) || c == 0xff);
} else {
return (c - 0xa1) > 0xfe - 0xa1;
// 0xff equivalent to casting to unsigned char
return ((c - 0xa1) & 0xff) > 0xfe - 0xa1;
}
}