Skip to content

Commit

Permalink
changed default for Encoding.default_external to UTF-8 on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
moofkit authored and eregon committed Oct 5, 2021
1 parent bc13e15 commit 61d8642
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/encoding/default_external_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
Encoding.default_external = Encoding::SHIFT_JIS
Encoding.default_external.should == Encoding::SHIFT_JIS
end

ruby_version_is "3.0" do
platform_is :windows do
it 'returns default external encoding for Windows' do
Encoding.default_external.should == Encoding::UTF_8
end
end
end
end

describe "Encoding.default_external=" do
Expand Down

0 comments on commit 61d8642

Please sign in to comment.