[#48582] Fwd: [ruby-changes:35635] nobu:r47717 (trunk): ruby.h: deprecate plain Data — SASADA Koichi <ko1@...>
ちょっといきなりこれは無いんじゃ無いでしょうか。
3 messages
2014/09/27
[#48586] Re: [ruby-cvs:54890] nobu:r47742 (trunk): common.mk: update only non-existing files — "Martin J. Dürst" <duerst@...>
gitweb が Last-Modified を送信しないのはちょっと残念です。誰に報告すれば
4 messages
2014/09/30
[#48589] Re: [ruby-cvs:54890] nobu:r47742 (trunk): common.mk: update only non-existing files
— Nobuyoshi Nakada <nobu@...>
2014/10/01
On 2014/09/30 15:18, "Martin J. Dürst" wrote:
[ruby-dev:48512] [ruby-trunk - Bug #9903] Regexp#[] doesn't consider capture name encoding
From:
usa@...
Date:
2014-09-03 03:29:37 UTC
List:
ruby-dev #48512
Issue #9903 has been updated by Usaku NAKAMURA.
Backport changed from 2.0.0: REQUIRED, 2.1: DONE to 2.0.0: DONE, 2.1: DONE
backported into `ruby_2_0_0` at r47364.
note that it needed r42251.
----------------------------------------
Bug #9903: Regexp#[] doesn't consider capture name encoding
https://bugs.ruby-lang.org/issues/9903#change-48611
* Author: Nobuyoshi Nakada
* Status: Closed
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: r46343
* Backport: 2.0.0: DONE, 2.1: DONE
----------------------------------------
Regexp#[]が引数の文字列やシンボルを考慮していません。
~~~ruby
key = "\xb1\xb2".force_encoding(Encoding::EUC_JP)
m = /(?<#{key}>.*)/.match("xxx")
p m[key.dup.force_encoding(Encoding::Shift_JIS)]
# => "xxx"
~~~
--
https://bugs.ruby-lang.org/