Jean Boussier ea1b1ea1aa String#force_encoding don't clear coderange if encoding is unchanged
Some code out there blind calls `force_encoding` without checking
what the original encoding was, which clears the coderange uselessly.

If the String is big, it can be a rather costly mistake.

For instance the `rack-utf8_sanitizer` gem does this on request
bodies.
2023-11-09 12:38:10 +01:00
..
2023-10-16 09:48:05 +09:00
2023-10-11 15:45:17 +09:00
2023-11-03 22:18:16 -07:00