handle Unicode filenames on Windows + test
by adding an argument "encoding: 'UTF-8'" to Dir.entries. Also add minimal test.
This commit is contained in:
5
t/bin/create_unicode_file.rb
Executable file
5
t/bin/create_unicode_file.rb
Executable file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
File.open('tmp-ΑΒΓ-αβγ-א-Њ-åäöÅÄÖ.txt', 'w', encoding: 'UTF-8') do |f|
|
||||
f.puts 'this is tmp-ΑΒΓ-αβγ-א-Њ-åäöÅÄÖ.txt'
|
||||
end
|
Reference in New Issue
Block a user