Actions
Bug #12368
closeddefault encoding of Integer#chr
Description
現状、Integer#chr
は引数なしの場合には、
- default internalが設定されていればそれを使う
- default internalが
nil
ならASCII(-8BIT)とみなす
という挙動になっていますが、2の部分についてはかつてscript encodingのデフォルトがUS-ASCIIだった時代の名残のような気がします。
というわけで、2の場合にはscript encodingとみなすのが正しいのではないでしょうか。
Files
Updated by duerst (Martin Dürst) about 7 years ago
What about making the default UTF-8. This is the same as source encoding for many scripts now. According to the experts at the Ruby Committer meeting, the information about the script encoding is only available in the parser.
Updated by mame (Yusuke Endoh) about 3 years ago
- Status changed from Open to Rejected
ユースケースが失念されたってことで一旦閉じることに。
Actions
Like0
Like0Like0