[ts] Fixed bug of reading Unicode from binary data (#2051)

This commit is contained in:
Terrasse 2022-04-07 11:50:42 +08:00 committed by GitHub
parent 3372ce0ba8
commit 01a36f81c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1022,7 +1022,7 @@ export class BinaryInput {
let chars = "";
let charCount = 0;
for (let i = 0; i < byteCount;) {
let b = this.readByte();
let b = this.readUnsignedByte();
switch (b >> 4) {
case 12:
case 13: