Skip to content

Commit

Permalink
Merge pull request #65 from ahorek/cp50220
Browse files Browse the repository at this point in the history
add a missing line
  • Loading branch information
headius authored Jan 17, 2025
2 parents 2221185 + 8c01158 commit cd0c070
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/org/jcodings/transcode/TranscodeFunctions.java
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ public static int funSoCp50220Encoder(byte[] statep, byte[] s, int sStart, int l
sp[2] = 0;
byte[] pBytes = tbl0208;
oStart = iso2022jp_put_state(sp, o, (int)sp[1], G0_JISX0208_1983, oStart);
sp[0] = G0_JISX0208_1983;

o[oStart++] = pBytes[p++];
s0 = toUnsignedInt(s[sStart]);
Expand Down Expand Up @@ -641,10 +642,7 @@ public static int finishCp50220Encoder(byte[] statep, byte[] o, int oStart, int
o[oStart++] = pBytes[p];
}

o[oStart++] = 0x1b;
o[oStart++] = '(';
o[oStart++] = 'B';
sp[0] = G0_ASCII;
oStart = iso2022jp_put_state(sp, o, (int)sp[0], G0_ASCII, oStart);

return oStart - output0;
}
Expand Down

0 comments on commit cd0c070

Please sign in to comment.