1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core/env/fixtures/common.rb
2020-12-27 17:35:32 +01:00

9 lines
185 B
Ruby

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