Actions
Bug #11413
closedString#split with wchar string
Bug #11413:
String#split with wchar string
Description
$ ruby -v -e 'p "a\0b".encode("utf-16le").split("\0".encode("utf-16le"))'
ruby 2.3.0dev (2015-08-02 trunk 51467) [universal.x86_64-darwin14]
["", "b"]
Expected to be ["a", "b"]
, same as ordinary ASCII-compatible encodings.
Actions