Project

General

Profile

Bug #9930

Updated by nobu (Nobuyoshi Nakada) about 6 years ago

Something seems amiss here--I can't seem to pass in a unicode filename and have it used for reading/opening a file: 

 ~~~ 
 C:\>type read.rb 
 p ARGV 
 p Dir['*'] 
 p File.binread(ARGV[0]).size 

 c:\>ruby read.rb "( ͡° ͜ʖ ͡°).mp4" 
 ["( ?\xB0 ?? ?\xB0).mp4"] 
 ["( ?\xB0 ?? ?\xB0).mp4"] 
 read.rb:3:in `binread': Invalid argument - ( ?° (Errno::EINVAL) 
         from read.rb:3:in `<main>' 
 ~~~ 

 (jruby too, fwiw...)

Back