We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de561ca commit f809719Copy full SHA for f809719
lib/irb/cmd/info.rb
@@ -18,7 +18,7 @@ def inspect
18
str += "LC_ALL env: #{ENV["LC_ALL"]}\n" if ENV["LC_ALL"] && !ENV["LC_ALL"].empty?
19
str += "East Asian Ambiguous Width: #{Reline.ambiguous_width.inspect}\n"
20
if RbConfig::CONFIG['host_os'] =~ /mswin|msys|mingw|cygwin|bccwin|wince|emc/
21
- codepage = `chcp`.sub(/.*: (\d+)\n/, '\1')
+ codepage = `chcp`.b.sub(/.*: (\d+)\n/, '\1')
22
str += "Code page: #{codepage}\n"
23
end
24
str
0 commit comments