mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Add a hint of ASCII-8BIT
being BINARY
[Feature #18576] Since outright renaming `ASCII-8BIT` is deemed to backward incompatible, the next best thing would be to only change its `#inspect`, particularly in exception messages.
This commit is contained in:
parent
b3c59370ca
commit
3a7846b1aa
7 changed files with 40 additions and 15 deletions
4
re.c
4
re.c
|
@ -1530,8 +1530,8 @@ reg_enc_error(VALUE re, VALUE str)
|
|||
{
|
||||
rb_raise(rb_eEncCompatError,
|
||||
"incompatible encoding regexp match (%s regexp with %s string)",
|
||||
rb_enc_name(rb_enc_get(re)),
|
||||
rb_enc_name(rb_enc_get(str)));
|
||||
rb_enc_inspect_name(rb_enc_get(re)),
|
||||
rb_enc_inspect_name(rb_enc_get(str)));
|
||||
}
|
||||
|
||||
static inline int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue