From: nobu@... Date: 2014-06-11T06:40:47+00:00 Subject: [ruby-core:63097] [ruby-trunk - Bug #9930] unicode filenames somehow don't work Issue #9930 has been updated by Nobuyoshi Nakada. Description updated Category set to platform/windows Assignee set to cruby-windows Target version set to current: 2.2.0 `ARGV` is still in the default external encoding, i.e., console codepage. We'd like to make them UTF-8, but have no concrete migration plan yet. ---------------------------------------- Bug #9930: unicode filenames somehow don't work https://bugs.ruby-lang.org/issues/9930#change-47164 * Author: Roger Pack * Status: Open * Priority: Normal * Assignee: cruby-windows * Category: platform/windows * Target version: current: 2.2.0 * ruby -v: ruby 1.9.3p194 (2012-04-20) [i386-mingw32] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- 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 `
' ~~~ (jruby too, fwiw...) -- https://bugs.ruby-lang.org/