Skip to content

Commit 846220b

Browse files
djoooooeeregon
authored andcommitted
Update JCodings to 1.0.61
1 parent 0465567 commit 846220b

File tree

1 file changed

+5
-33
lines changed

1 file changed

+5
-33
lines changed

truffle/mx.truffle/suite.py

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@
9797
"digest": "sha512:22569a011d207fb8f33e7e71162542a5748cc3daa67eec59cbdc2aeb0894c331dfb8b6100ea88529c6cea72672cbddd77ca6134ddf331685d68b3e72b4e0a914",
9898
},
9999

100-
"JCODINGS_1.0.58": {
101-
"digest" : "sha512:625210aa07d1e08bf2f5fdc9da6c491a4e5a56e7db297cba1aa73636670ac1d62f3fd763716ef6ede862456b17169272ed9c8461d07100f95262163dc9c18ef8",
102-
"sourceDigest" : "sha512:d0f883f658310f7ad091aea08df28f1f5fe12080d6cb266cd91aec7e34cda1d57736d32618e8632b329854367d6e4d5fc91b5eb8ac9b823b26113fae3f75f50c",
100+
"JCODINGS_1.0.61": {
101+
"digest" : "sha512:de14b1e029594c61e6f50411ae2e07f9b5977b6da94e19dfcf421674ffbbf90f6d91cf920d07853ed5518a0fc61ef8102e9f632c3b6e2fce74d6d0ee2ef153ee",
102+
"sourceDigest" : "sha512:770412e2304a995ce77d32620e22ef2446156a78936b5490a52717d28cb125a28a3b4bec274436009e1e400816103e750cd26a1bee263acd7e312ce545a5b1ea",
103103
"maven": {
104104
"groupId": "org.jruby.jcodings",
105105
"artifactId": "jcodings",
106-
"version": "1.0.58",
106+
"version": "1.0.61",
107107
},
108108
"license": ["MIT"],
109109
},
@@ -1473,7 +1473,7 @@
14731473
"TRUFFLE_API"
14741474
],
14751475
"shadedDependencies" : [
1476-
"truffle:JCODINGS_1.0.58",
1476+
"truffle:JCODINGS_1.0.61",
14771477
],
14781478
"class" : "ShadedLibraryProject",
14791479
"shade" : {
@@ -1496,34 +1496,6 @@
14961496
"org/jcodings/util/ArrayReader.java" : {
14971497
"\"/tables/\"" : "\"/org/graalvm/shadowed/org/jcodings/tables/\"",
14981498
},
1499-
# Fix CESU8Encoding.leftAdjustCharHead by applying a stripped down version of:
1500-
# https://github.com/jruby/jcodings/pull/61/ (not in 1.0.58; remove when updating to a newer version).
1501-
"org/jcodings/specific/CESU8Encoding.java" : {
1502-
"""
1503-
(public int leftAdjustCharHead\\(byte\\[\\] bytes, int p, int s, int end\\) {
1504-
if \\(s <= p\\)
1505-
return s;
1506-
int p_ = s;
1507-
while \\(!utf8IsLead\\(bytes\\[p_\\] & 0xff\\) && p_ > p\\)
1508-
p_--;)(
1509-
return p_;
1510-
})
1511-
""" : """
1512-
\\1
1513-
if (p_ > p && s - p_ == 2 && Character.isLowSurrogate((char) utf8Decode3ByteSequence(bytes, p_))) {
1514-
int pSurrogatePair = p_ - 1;
1515-
while (!utf8IsLead(bytes[pSurrogatePair] & 0xff) && pSurrogatePair > p)
1516-
pSurrogatePair--;
1517-
if (p_ - pSurrogatePair == 3 && Character.isHighSurrogate((char) utf8Decode3ByteSequence(bytes, pSurrogatePair))) {
1518-
return pSurrogatePair;
1519-
}
1520-
}\\2
1521-
1522-
private static int utf8Decode3ByteSequence(byte[] bytes, int p) {
1523-
return ((bytes[p] & 0xF) << 12) | ((bytes[p + 1] & 0xff & 0x3f) << 6) | (bytes[p + 2] & 0xff & 0x3f);
1524-
}
1525-
""",
1526-
},
15271499
"org/jcodings/Encoding.java" : {
15281500
"(public static Encoding load\\([^()]*\\) \\{\\s*)[^{}]*(?:\\{[^{}]*\\}[^{}]*)*(\\s*\\})" : "\\1throw new InternalException(ErrorMessages.ERR_ENCODING_CLASS_DEF_NOT_FOUND, name);\\2"
15291501
},

0 commit comments

Comments
 (0)