Closed k77ch7 closed 4 years ago
This avoids Java ArrayIndex error when running the below test code. "a\0".force_encoding("utf-32le").chomp
"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
This looks ok to me. Merging.
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