You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In brief, on all other Rubies, "\x80".force_encoding("US-ASCII").chars.map{|char| char.valid_encoding? ? char : "?" }.join.encode("UTF-8") returns ?, but JRUBY returns \x80
Map string char with invalid encoding to '?'
Format identical string expectation to read easier
Refs:
- rspec/rspec-core#1760
- via rspec#134
Set to pending for JRuby, opened issue
jruby/jruby#2580
that JRuby is the only Ruby that returns "\x80"
in place of "?"
See rspec/rspec-support#172 (comment) for origin of this issue.
In brief, on all other Rubies,
"\x80".force_encoding("US-ASCII").chars.map{|char| char.valid_encoding? ? char : "?" }.join.encode("UTF-8")
returns?
, but JRUBY returns\x80
The text was updated successfully, but these errors were encountered: