diff options
-rw-r--r-- | lib/irb/cmd/info.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/cmd/info.rb b/lib/irb/cmd/info.rb index 2f3fef16ca..8ad0c2a438 100644 --- a/lib/irb/cmd/info.rb +++ b/lib/irb/cmd/info.rb @@ -17,7 +17,7 @@ module IRB str += "LANG env: #{ENV["LANG"]}\n" if ENV["LANG"] && !ENV["LANG"].empty? str += "LC_ALL env: #{ENV["LC_ALL"]}\n" if ENV["LC_ALL"] && !ENV["LC_ALL"].empty? if RbConfig::CONFIG['host_os'] =~ /mswin|msys|mingw|cygwin|bccwin|wince|emc/ - codepage = `chcp`.sub(/Active code page: (\d+)\n/, '\1') + codepage = `chcp`.sub(/.*: (\d+)\n/, '\1') str += "Code page: #{codepage}\n" end str |