diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2026-01-17 13:38:55 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2026-01-17 13:38:55 +0900 |
| commit | 8ca2f6489bc2b04902472c544edd69664cef0c4e (patch) | |
| tree | 58a040e9b0e10414a878c01260f27ff54c1f7318 /encoding.c | |
| parent | 3e13b7d4ef546574dcf376e2bb6b630abb46181b (diff) | |
Revert "Fix rb_interned_str: create strings with BINARY (akak ASCII_8BIT) encoding"
This reverts commit 1f3c52dc155fb7fbc42fc8e146924091ba1dfa20.
Diffstat (limited to 'encoding.c')
| -rw-r--r-- | encoding.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/encoding.c b/encoding.c index e9510fe3c1..8bb393b471 100644 --- a/encoding.c +++ b/encoding.c @@ -1367,7 +1367,7 @@ enc_names_i(st_data_t name, st_data_t idx, st_data_t args) VALUE *arg = (VALUE *)args; if ((int)idx == (int)arg[0]) { - VALUE str = rb_enc_interned_str_cstr((char *)name, rb_usascii_encoding()); + VALUE str = rb_interned_str_cstr((char *)name); rb_ary_push(arg[1], str); } return ST_CONTINUE; @@ -1873,7 +1873,7 @@ static int rb_enc_name_list_i(st_data_t name, st_data_t idx, st_data_t arg) { VALUE ary = (VALUE)arg; - VALUE str = rb_enc_interned_str_cstr((char *)name, rb_usascii_encoding()); + VALUE str = rb_interned_str_cstr((char *)name); rb_ary_push(ary, str); return ST_CONTINUE; } @@ -1921,7 +1921,7 @@ rb_enc_aliases_enc_i(st_data_t name, st_data_t orig, st_data_t arg) str = rb_fstring_cstr(rb_enc_name(enc)); rb_ary_store(ary, idx, str); } - key = rb_enc_interned_str_cstr((char *)name, rb_usascii_encoding()); + key = rb_interned_str_cstr((char *)name); rb_hash_aset(aliases, key, str); return ST_CONTINUE; } |
