jruby / jcodings

Java-based codings helper classes for Joni and JRuby
MIT License
20 stars 29 forks source link

Fix getGB4bt2 #35

Closed k77ch7 closed 4 years ago

k77ch7 commented 4 years ago

This fixes wrong right shift by 160 bits. And this makes all the following MRI test cases pass.

TestTranscode#test_gb18030

headius commented 4 years ago

I suspect this fixes #24 as well.

headius commented 4 years ago

Oh I see #24 was already fixed. Hmm, I thought there was another gb18030 issue floating around.

In any case, awesome work!