Bug #11413
closed
String#split with wchar string
Added by nobu (Nobuyoshi Nakada) almost 9 years ago.
Updated over 8 years ago.
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.
- Status changed from Open to Closed
Applied in changeset r51470.
re.c: fix for wide character encodings
- 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.
- Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: DONE to 2.0.0: REQUIRED, 2.1: DONE, 2.2: DONE
ruby_2_1 r51615 merged revision(s) 51470.
note: removed LIKELY macro.
- Related to Bug #11488: String#index and #include? broken for wide encodings added
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0