jruby / jcodings

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

Update UTF32Encoding #33

Closed k77ch7 closed 4 years ago

k77ch7 commented 4 years ago

This avoids Java ArrayIndex error when running the below test code. "a\0".force_encoding("utf-32le").chomp

And this updates isNewLine method conditions(port from MRI 2.6.6).

see: https://github.com/ruby/ruby/blob/v2_6_6/enc/utf_32le.c https://github.com/ruby/ruby/blob/v2_6_6/enc/utf_32be.c

headius commented 4 years ago

This looks ok to me. Merging.