From: nagachika00@... Date: 2015-08-15T18:31:05+00:00 Subject: [ruby-core:70402] [Ruby trunk - Bug #11413] String#split with wchar string Issue #11413 has been updated by Tomoyuki Chikanaga. Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED to 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: DONE Backported into `ruby_2_2` branch at r51590. ---------------------------------------- Bug #11413: String#split with wchar string https://bugs.ruby-lang.org/issues/11413#change-53805 * Author: Nobuyoshi Nakada * Status: Closed * Priority: Normal * Assignee: * ruby -v: * Backport: 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: DONE ---------------------------------------- ~~~ $ 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. -- https://bugs.ruby-lang.org/