diff options
Diffstat (limited to 'spec/ruby/core/env/fixtures/common.rb')
-rw-r--r-- | spec/ruby/core/env/fixtures/common.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/ruby/core/env/fixtures/common.rb b/spec/ruby/core/env/fixtures/common.rb new file mode 100644 index 0000000000..8d5057614d --- /dev/null +++ b/spec/ruby/core/env/fixtures/common.rb @@ -0,0 +1,9 @@ +module ENVSpecs + def self.encoding + locale = Encoding.find('locale') + if ruby_version_is '3' and platform_is :windows + locale = Encoding::UTF_8 + end + locale + end +end |