ruby-changes:60270
From: Koichi <ko1@a...>
Date: Tue, 3 Mar 2020 15:28:01 +0900 (JST)
Subject: [ruby-changes:60270] aa9a38c0ed (master): Ignore incompatible convert of symbols
https://git.ruby-lang.org/ruby.git/commit/?id=aa9a38c0ed From aa9a38c0ed114edded28a2a26e8dd507f7e1547f Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Tue, 3 Mar 2020 15:27:23 +0900 Subject: Ignore incompatible convert of symbols diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index 10533c5..7277bf5 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -101,6 +101,8 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb/completion.rb#L101 sym = $1 candidates = Symbol.all_symbols.collect do |s| ":" + s.id2name.encode(Encoding.default_external) + rescue Encoding::UndefinedConversionError + # ignore end candidates.grep(/^#{Regexp.quote(sym)}/) else -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/