Project

General

Profile

Actions

Bug #11413

closed

String#split with wchar string

Added by nobu (Nobuyoshi Nakada) almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:70220]

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.


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #11488: String#index and #include? broken for wide encodingsClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0