We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b66ac2 commit 454b6edCopy full SHA for 454b6ed
1 file changed
spec/regression/JRUBY-6679_console_codepage.rb
@@ -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
12
+end
0 commit comments