[#102393] [Ruby master Feature#17608] Compact and sum in one step — sawadatsuyoshi@...

Issue #17608 has been reported by sawa (Tsuyoshi Sawada).

13 messages 2021/02/04

[#102438] [Ruby master Bug#17619] if false foo=42; end creates a foo local variable set to nil — pkmuldoon@...

Issue #17619 has been reported by pkmuldoon (Phil Muldoon).

10 messages 2021/02/10

[#102631] [Ruby master Feature#17660] Expose information about which basic methods have been redefined — tenderlove@...

Issue #17660 has been reported by tenderlovemaking (Aaron Patterson).

9 messages 2021/02/27

[#102639] [Ruby master Misc#17662] The herdoc pattern used in tests does not syntax highlight correctly in many editors — eregontp@...

Issue #17662 has been reported by Eregon (Benoit Daloze).

13 messages 2021/02/27

[#102652] [Ruby master Bug#17664] Behavior of sockets changed in Ruby 3.0 to non-blocking — ciconia@...

Issue #17664 has been reported by ciconia (Sharon Rosner).

23 messages 2021/02/28

[ruby-core:102625] [Ruby master Bug#9930] unicode filenames somehow don't work

From: merch-redmine@...
Date: 2021-02-26 22:12:12 UTC
List: ruby-core #102625
Issue #9930 has been updated by jeremyevans0 (Jeremy Evans).

Status changed from Open to Closed

As of Ruby 3.0, ARGV values are in UTF-8 encoding by default on Windows.

----------------------------------------
Bug #9930: unicode filenames somehow don't work
https://bugs.ruby-lang.org/issues/9930#change-90619

* Author: rogerdpack (Roger Pack)
* Status: Closed
* Priority: Normal
* Assignee: cruby-windows
* 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 `<main>'
~~~

(jruby too, fwiw...)



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next