Skip to content

Commit 454b6ed

Browse files
committed
spec for JRUBY-6679
1 parent 1b66ac2 commit 454b6ed

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
require 'rspec'
2+
require 'java'
3+
4+
describe "JRUBY-6679: Encoding.default_external" do
5+
it "should count in Windows console code page" do
6+
if java.lang.System.getProperty('os.name').include? 'Windows'
7+
enc_ext = Encoding.default_external.name
8+
codepage = `cmd /c chcp`.split.last
9+
enc_ext.include?(codepage).should == true
10+
end
11+
end
12+
end

0 commit comments

Comments
 (0)