[ruby/reline] Use UTF-8 only for width calc, rest uses original encoding
I confirmed that libvterm supports only which are UTF-8, US ASCII, UK, and DEC graphics by reading source code, so can't test this patch by yamatanoorogi gem through vterm gem for now.
Backport lib/reline, and lib/irb for 3.0.1 3rd (#4228)
https://github.com/ruby/irb/commit/96accf3b95
https://github.com/ruby/irb/commit/5be9354cf9
https://github.com/ruby/irb/commit/39d1cd874f
https://github.com/ruby/irb/commit/33f933196f
This fixes ruby/reline#261.
https://github.com/ruby/reline/commit/3cf1213014
https://github.com/ruby/reline/commit/d4d9d3e3d4
https://github.com/ruby/reline/commit/03031b885d
ref. https://github.com/ruby/reline/pull/262
https://github.com/ruby/reline/commit/b98bc3c329
Revert "Support for change in Windows-specific behavior at eol"
This reverts commit cad4de6ee841b43f3f0e441626f9415c3eda0f82.
https://github.com/ruby/reline/commit/646587fc2c
https://github.com/ruby/reline/commit/3535676689
I confirmed that libvterm supports only which are UTF-8, US ASCII, UK, and
DEC graphics by reading source code, so can't test this patch by
yamatanoorogi gem through vterm gem for now.
This fixes ruby/irb#190.
https://github.com/ruby/reline/commit/44596c0cc7
use double quotes to properly convert the \000 escape sequence.
https://github.com/ruby/reline/commit/236dfe5683
https://github.com/ruby/irb/commit/ab9852ccc5
https://github.com/ruby/reline/commit/462f971bd3
Co-authored-by: Nobuyoshi Nakada nobu@ruby-lang.org
Co-authored-by: Eamonn Webster eamonn.webster@gmail.com
Co-authored-by: Yoshinao Muramatu ysno@ac.auone-net.jp
Co-authored-by: cremno cremno@mail.ru