summaryrefslogtreecommitdiff
path: root/lib/reline/io/dumb.rb
diff options
context:
space:
mode:
authorWu <[email protected]>2024-10-22 23:43:12 +0900
committergit <[email protected]>2024-10-22 14:43:18 +0000
commite288604eb3d6c2c7607a11b471a2efb96d15937f (patch)
treeaa4099a6a06a552fe5fca7bf96f28e57f0ab8e70 /lib/reline/io/dumb.rb
parent54065f3b7bf86fd95d1a406079cf5a09370a91d6 (diff)
[ruby/reline] Use IO's encoding instead of Encoding.default_external
(https://github.com/ruby/reline/pull/765) * use IO's encoding * refactoring * remove unused encoding params * (for retriggering CI) remove unused encoding params https://github.com/ruby/reline/commit/f09772adab
Diffstat (limited to 'lib/reline/io/dumb.rb')
-rw-r--r--lib/reline/io/dumb.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/io/dumb.rb b/lib/reline/io/dumb.rb
index 6a10af4fef..34bba98ba1 100644
--- a/lib/reline/io/dumb.rb
+++ b/lib/reline/io/dumb.rb
@@ -21,7 +21,7 @@ class Reline::Dumb < Reline::IO
elsif RUBY_PLATFORM =~ /mswin|mingw/
Encoding::UTF_8
else
- Encoding::default_external
+ @input.external_encoding || Encoding::default_external
end
end