Actions
Bug #11677
closed52530の変更により、sprintfの引数のhashにkeyが存在していてもvalueがnilのときにKeyErrorがでるようになってしまった。
Bug #11677:
52530の変更により、sprintfの引数のhashにkeyが存在していてもvalueがnilのときにKeyErrorがでるようになってしまった。
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0dev (trunk 52534) [x86_64-darwin14]
Description
Files
Updated by yui-knk (Kaneko Yuichiro) almost 11 years ago
- File deleted (
0001-Not-raise-KeyError-when-an-arg-hash-of-sprintf-has-k.patch)
Updated by nobu (Nobuyoshi Nakada) almost 11 years ago
- Status changed from Open to Closed
Applied in changeset r52537.
sprintf.c: nil value is valid
- sprintf.c (rb_str_format): look up the key, then get default
value and raise KeyError if the returned value is nil.
[ruby-dev:49338] [Ruby trunk - Bug #11677]
Updated by yui-knk (Kaneko Yuichiro) almost 11 years ago
ありがとうございます。
Updated by naruse (Yui NARUSE) almost 11 years ago
- Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED
Updated by usa (Usaku NAKAMURA) almost 11 years ago
- Related to Bug #11661: sprintf causes a KeyError instead of using a default value for hash substitution added
Actions