[前][次][番号順一覧][スレッド一覧]

ruby-changes:59165

From: aycabta <ko1@a...>
Date: Tue, 10 Dec 2019 22:16:25 +0900 (JST)
Subject: [ruby-changes:59165] fe0df7dcfc (master): Change encoding of completion strings

https://git.ruby-lang.org/ruby.git/commit/?id=fe0df7dcfc

From fe0df7dcfc92b81d3508473a08584f8372418323 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Tue, 10 Dec 2019 17:27:43 +0900
Subject: Change encoding of completion strings


diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 2986bdd..74c5489 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -904,7 +904,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L904
       target = before
     end
     postposing = @line.byteslice(@byte_pointer, @line.bytesize - @byte_pointer)
-    [preposing, target, postposing]
+    [preposing.encode(@encoding), target.encode(@encoding), postposing.encode(@encoding)]
   end
 
   def confirm_multiline_termination
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]