summaryrefslogtreecommitdiff
path: root/spec/ruby/command_line
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/command_line')
-rw-r--r--spec/ruby/command_line/dash_upper_k_spec.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/ruby/command_line/dash_upper_k_spec.rb b/spec/ruby/command_line/dash_upper_k_spec.rb
index d7e16d6edec..ef1248b19cb 100644
--- a/spec/ruby/command_line/dash_upper_k_spec.rb
+++ b/spec/ruby/command_line/dash_upper_k_spec.rb
@@ -57,10 +57,9 @@ describe 'The -K command line option' do
end
end
- platform_is_not :windows do
- it "ignores unknown codes" do
- ruby_exe(@test_string, options: '-KZ').should ==
- [Encoding::UTF_8.name, Encoding::UTF_8.name, nil].inspect
- end
+ it "ignores unknown codes" do
+ locale = Encoding.find('locale')
+ ruby_exe(@test_string, options: '-KZ').should ==
+ [Encoding::UTF_8.name, locale.name, nil].inspect
end
end