Project

General

Profile

Actions

Bug #11413

closed

String#split with wchar string

Added by nobu (Nobuyoshi Nakada) over 8 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 #1

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

  • Status changed from Open to Closed

Applied in changeset r51470.


re.c: fix for wide character encodings

  • re.c (rb_memsearch): should match only char boundaries in wide
    character encodings. [ruby-core:70220] [Bug #11413]
Actions #2

Updated by nagachika (Tomoyuki Chikanaga) over 8 years ago

  • 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.

Actions #3

Updated by usa (Usaku NAKAMURA) over 8 years ago

  • 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.

Actions #4

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

  • Related to Bug #11488: String#index and #include? broken for wide encodings added
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0