mirror of
https://github.com/ruby/ruby.git
synced 2026-01-29 13:34:17 +00:00
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.