Skip to content

StringIO.set_encoding_by_bom() #3632

@rurounijones

Description

@rurounijones

Some of our code makes use of this method: https://ruby-doc.org/3.2.2/exts/stringio/StringIO.html#method-i-set_encoding_by_bom

This fails in our test suite when running TruffleRuby 24.0.2

     NoMethodError:
       undefined method `set_encoding_by_bom' for #<StringIO:0x848638>

This does not appear to be implemented in Truffleruby butset_encoding is :

def set_encoding(external, internal = nil, options = nil)

(As a sidenote: Love what you guys are doing with TruffleRuby; excited for the future)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions