Skip to content

Commit

Permalink
Merge pull request #98 in G/truffleruby from fix-dir-glob to master
Browse files Browse the repository at this point in the history
* commit '909930eb64b80db45075cd721bb288a108125655':
  `Dir.glob` shouldn't modify pattern strings.
  • Loading branch information
nirvdrum committed May 24, 2018
2 parents a6ec33e + 909930e commit 528b374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/ruby/core/dir.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def glob(pattern, flags=0, &block)

total = matches.size
while index < total
Truffle::Type.encode_string matches[index], enc
matches[index] = matches[index].encode(enc) unless matches[index].encoding == enc
index += 1
end
end
Expand Down

0 comments on commit 528b374

Please sign in to comment.