aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-14 00:14:11 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-15 17:46:48 +0900
commit0d57d59933fb7b826bd0e20d84ed7f6d6636ac90 (patch)
tree67f747a4495ca881515145141050d8290a5fdb7d /test
parente09094546a19d6b62b3e21d0b061b103cf21f760 (diff)
downloadruby-0d57d59933fb7b826bd0e20d84ed7f6d6636ac90.tar.gz
Keep encoding in the result of File.expand_path [Bug #17517]
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_file_exhaustive.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb
index ac11e0cc85..b966cc690c 100644
--- a/test/ruby/test_file_exhaustive.rb
+++ b/test/ruby/test_file_exhaustive.rb
@@ -880,6 +880,8 @@ class TestFileExhaustive < Test::Unit::TestCase
assert_equal("#{Dir.pwd}/#{path}", File.expand_path(path))
assert_incompatible_encoding {|d| File.expand_path(d)}
+
+ assert_equal(Encoding::UTF_8, File.expand_path("foo", "#{drive}/").encoding)
end
def test_expand_path_encoding_filesystem