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: 25c4507ba914
Choose a base ref
...
head repository: jruby/jcodings
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d7aee22da9b3
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Jan 5, 2018

  1. deprecate maxLengthDistance

    Marcin.Mielzynski committed Jan 5, 2018
    Copy the full SHA
    403cdb9 View commit details
  2. fix a typo

    Marcin.Mielzynski committed Jan 5, 2018
    Copy the full SHA
    d7aee22 View commit details
Showing with 2 additions and 1 deletion.
  1. +1 −0 src/org/jcodings/Encoding.java
  2. +1 −1 src/org/jcodings/specific/BaseUTF8Encoding.java
1 change: 1 addition & 0 deletions src/org/jcodings/Encoding.java
Original file line number Diff line number Diff line change
@@ -189,6 +189,7 @@ public final int maxLength() {
}

/* ONIGENC_MBC_MAXLEN_DIST */
@Deprecated
public final int maxLengthDistance() {
return maxLength();
}
2 changes: 1 addition & 1 deletion src/org/jcodings/specific/BaseUTF8Encoding.java
Original file line number Diff line number Diff line change
@@ -154,7 +154,7 @@ public int mbcCaseFold(int flag, byte[]bytes, IntHolder pp, int end, byte[]fold)
if (Config.USE_UNICODE_CASE_FOLD_TURKISH_AZERI) {
if ((flag & Config.CASE_FOLD_TURKISH_AZERI) != 0) {
if (bytes[p] == (byte)0x49) {
fold[foldP++] = (byte)0xc4l;
fold[foldP++] = (byte)0xc4;
fold[foldP] = (byte)0xb1;
pp.value++;
return 2;