diff options
author | aycabta <aycabta@gmail.com> | 2021-12-20 16:06:12 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-12-20 16:19:36 +0900 |
commit | b96ef7684c45ea1959c6f2bdad125b4a073419a4 (patch) | |
tree | d0b2ed9300be02e8323d33090af66ecaa4ae8788 /lib/irb | |
parent | 145f7c094f4eb25d7fe39b60276222109afad1d1 (diff) |
[ruby/irb] Add East Asian Ambiguous Width to irb_info command
https://github.com/ruby/irb/commit/4cade4b7e5
Diffstat (limited to 'lib/irb')
-rw-r--r-- | lib/irb/cmd/info.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/irb/cmd/info.rb b/lib/irb/cmd/info.rb index 8ad0c2a438..a2f2a27cec 100644 --- a/lib/irb/cmd/info.rb +++ b/lib/irb/cmd/info.rb @@ -16,6 +16,7 @@ module IRB str += "RUBY_PLATFORM: #{RUBY_PLATFORM}\n" 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? + str += "East Asian Ambiguous Width: #{Reline.ambiguous_width.inspect}\n" if RbConfig::CONFIG['host_os'] =~ /mswin|msys|mingw|cygwin|bccwin|wince|emc/ codepage = `chcp`.sub(/.*: (\d+)\n/, '\1') str += "Code page: #{codepage}\n" |