Feature #12034 » 0002-follow-up-for-OS-X.patch
| test/ruby/test_dir_m17n.rb | ||
|---|---|---|
|
opts = {:encoding => Encoding.default_external} if /mswin|mingw/ =~ RUBY_PLATFORM
|
||
|
ents = Dir.entries(".", opts)
|
||
|
if /darwin/ =~ RUBY_PLATFORM
|
||
|
filename = filename.encode("utf-8").force_encoding("euc-jp")
|
||
|
filename = filename.encode("utf-8").b
|
||
|
end
|
||
|
assert_include(ents, filename)
|
||
|
EOS
|
||
| ... | ... | |
|
opts = {:encoding => Encoding.default_external} if /mswin|mingw/ =~ RUBY_PLATFORM
|
||
|
ents = Dir.entries(".", opts)
|
||
|
if /darwin/ =~ RUBY_PLATFORM
|
||
|
filename = filename.encode("utf-8", "euc-jp").force_encoding("euc-jp")
|
||
|
filename = filename.encode("utf-8").b
|
||
|
end
|
||
|
assert_include(ents, filename)
|
||
|
EOS
|
||
| ... | ... | |
|
opts = {:encoding => Encoding.default_external} if /mswin|mingw/ =~ RUBY_PLATFORM
|
||
|
ents = Dir.entries(".", opts)
|
||
|
if /darwin/ =~ RUBY_PLATFORM
|
||
|
filename = filename.force_encoding("euc-jp")
|
||
|
filename = filename.b
|
||
|
end
|
||
|
assert_include(ents, filename)
|
||
|
EOS
|
||
- « Previous
- 1
- 2
- Next »