mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 02:53:57 +02:00
Revert encoding to ::Encoding::UTF_8
if fu_windows?
This commit is contained in:
parent
59646e8e29
commit
2dd61df69f
1 changed files with 1 additions and 1 deletions
|
@ -1290,7 +1290,7 @@ module FileUtils
|
||||||
|
|
||||||
def entries
|
def entries
|
||||||
opts = {}
|
opts = {}
|
||||||
opts[:encoding] = path.encoding
|
opts[:encoding] = fu_windows? ? ::Encoding::UTF_8 : path.encoding
|
||||||
|
|
||||||
files = if Dir.respond_to?(:children)
|
files = if Dir.respond_to?(:children)
|
||||||
Dir.children(path, **opts)
|
Dir.children(path, **opts)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue