diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2026-01-16 21:15:05 +0100 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2026-01-16 22:44:38 +0100 |
| commit | 1f3c52dc155fb7fbc42fc8e146924091ba1dfa20 (patch) | |
| tree | 02ac37df8073c08743e67533322ed1438349813b /string.c | |
| parent | c56ce8a6c19334265b1a4a64876fffff9b98b2b1 (diff) | |
Fix rb_interned_str: create strings with BINARY (akak ASCII_8BIT) encoding
[Bug #21842]
The documentation always stated as much, and it's consistent with the
rb_str_* family of functions.
Diffstat (limited to 'string.c')
| -rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12709,7 +12709,7 @@ VALUE rb_interned_str(const char *ptr, long len) { struct RString fake_str = {RBASIC_INIT}; - return register_fstring(setup_fake_str(&fake_str, ptr, len, ENCINDEX_US_ASCII), true, false); + return register_fstring(setup_fake_str(&fake_str, ptr, len, ENCINDEX_ASCII_8BIT), true, false); } VALUE |
