Skip to content

Commit cd0c070

Browse files
authored
Merge pull request #65 from ahorek/cp50220
add a missing line
2 parents 2221185 + 8c01158 commit cd0c070

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/org/jcodings/transcode/TranscodeFunctions.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ public static int funSoCp50220Encoder(byte[] statep, byte[] s, int sStart, int l
545545
sp[2] = 0;
546546
byte[] pBytes = tbl0208;
547547
oStart = iso2022jp_put_state(sp, o, (int)sp[1], G0_JISX0208_1983, oStart);
548+
sp[0] = G0_JISX0208_1983;
548549

549550
o[oStart++] = pBytes[p++];
550551
s0 = toUnsignedInt(s[sStart]);
@@ -641,10 +642,7 @@ public static int finishCp50220Encoder(byte[] statep, byte[] o, int oStart, int
641642
o[oStart++] = pBytes[p];
642643
}
643644

644-
o[oStart++] = 0x1b;
645-
o[oStart++] = '(';
646-
o[oStart++] = 'B';
647-
sp[0] = G0_ASCII;
645+
oStart = iso2022jp_put_state(sp, o, (int)sp[0], G0_ASCII, oStart);
648646

649647
return oStart - output0;
650648
}

0 commit comments

Comments
 (0)