Implement Encoding on String
#2185
Labels
A-ruby-core
Area: Ruby Core types.
A-ruby-stdlib
Area: Ruby Standard Library packages.
B-mruby
Backend: Implementation of artichoke-core using mruby.
C-enhancement
Category: New feature or request.
E-medium
Call for participation: Experience needed to fix: Medium / intermediate.
This appears to still be hanging over from mruby days (after looking at some of the comments, mruby was UTF-8 only).
Some examples:
String#force_encoding
doesn't change encoding https://github.com/artichoke/artichoke/blob/trunk/artichoke-backend/src/extn/core/string/string.rb#L606-L610Encoding
class also has many TODOs https://github.com/artichoke/artichoke/blob/trunk/artichoke-backend/src/extn/core/string/string.rb#L84-L150At present, this makes writing tests for things like
Time#strftime
impossible for non UTF-8 encodings, as mentioned here: #2182 (comment)The text was updated successfully, but these errors were encountered: