ruby-changes:60269
From: aycabta <ko1@a...>
Date: Tue, 3 Mar 2020 14:45:52 +0900 (JST)
Subject: [ruby-changes:60269] 91440ff13f (master): Convert incompatible encoding symbol names
https://git.ruby-lang.org/ruby.git/commit/?id=91440ff13f From 91440ff13fbf3b14dc6ac6c1e0a33bc5a1e3237c Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Tue, 3 Mar 2020 14:40:45 +0900 Subject: Convert incompatible encoding symbol names diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index 7236747..10533c5 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -99,7 +99,9 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb/completion.rb#L99 return nil if doc_namespace if Symbol.respond_to?(:all_symbols) sym = $1 - candidates = Symbol.all_symbols.collect{|s| ":" + s.id2name} + candidates = Symbol.all_symbols.collect do |s| + ":" + s.id2name.encode(Encoding.default_external) + end candidates.grep(/^#{Regexp.quote(sym)}/) else [] -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/