[ruby-core:118976] [Ruby master Bug#20704] Windows: `-C` option does not work for multibyte path name

Issue #20704 has been reported by nobu (Nobuyoshi Nakada). ---------------------------------------- Bug #20704: Windows: `-C` option does not work for multibyte path name https://bugs.ruby-lang.org/issues/20704 * Author: nobu (Nobuyoshi Nakada) * Status: Open * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- Related to [Bug #20699]. ``` C:> \Ruby33-x64\bin\ruby.exe -C xテスト_test -ep \Ruby33-x64\bin\ruby.exe: Can't chdir to xテスト_test (fatal) ``` -- https://bugs.ruby-lang.org/

Issue #20704 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 3.1: REQUIRED, 3.2: REQUIRED, 3.3: REQUIRED to 3.1: REQUIRED, 3.2: DONE, 3.3: REQUIRED ruby_3_2 commit:48af30b068729058c2f45375e67fa76f6240a228 merged revision(s) commit:d33e3d47b84a73b38644f2a3d41881ce9be6ef18. ---------------------------------------- Bug #20704: Windows: `-C` option does not work for multibyte path name https://bugs.ruby-lang.org/issues/20704#change-110157 * Author: nobu (Nobuyoshi Nakada) * Status: Closed * Backport: 3.1: REQUIRED, 3.2: DONE, 3.3: REQUIRED ---------------------------------------- Related to [Bug #20699]. ``` C:> \Ruby33-x64\bin\ruby.exe -C xテスト_test -ep \Ruby33-x64\bin\ruby.exe: Can't chdir to xテスト_test (fatal) ``` https://github.com/ruby/ruby/pull/11493 -- https://bugs.ruby-lang.org/

Issue #20704 has been updated by k0kubun (Takashi Kokubun). Backport changed from 3.1: REQUIRED, 3.2: DONE, 3.3: REQUIRED to 3.1: REQUIRED, 3.2: DONE, 3.3: DONE ruby_3_3 commit:2b713dcb89c620daa55d672d2933ffde333ca5de merged revision(s) commit:d33e3d47b84a73b38644f2a3d41881ce9be6ef18. ---------------------------------------- Bug #20704: Windows: `-C` option does not work for multibyte path name https://bugs.ruby-lang.org/issues/20704#change-110372 * Author: nobu (Nobuyoshi Nakada) * Status: Closed * Backport: 3.1: REQUIRED, 3.2: DONE, 3.3: DONE ---------------------------------------- Related to [Bug #20699]. ``` C:> \Ruby33-x64\bin\ruby.exe -C xテスト_test -ep \Ruby33-x64\bin\ruby.exe: Can't chdir to xテスト_test (fatal) ``` https://github.com/ruby/ruby/pull/11493 -- https://bugs.ruby-lang.org/

Issue #20704 has been updated by deivid (David Rodríguez). Hello @nobu! One bundler spec started failing after upgrading our CI to use Ruby 3.3.6 on Windows. The error reads like this: ``` Invoking `C:/hostedtoolcache/windows/Ruby/3.3.6/x64/bin/ruby.exe -ID:/a/rubygems/rubygems/bundler/spec -rD:/a/rubygems/rubygems/bundler/spec/support/artifice/fail.rb -rD:/a/rubygems/rubygems/bundler/spec/support/hax.rb D:/a/rubygems/rubygems/bundler/tmp/1.4/gems/system/bin/bundle config path D:/a/rubygems/rubygems/bundler/tmp/1.4/♥/vendor/bundle` failed with output: ---------------------------------------------------------------------- Error: Command line contains characters that are not supported in the active code page (1252). ---------------------------------------------------------------------- # ./spec/support/command_execution.rb:26:in `raise_error!' # ./spec/support/subprocess.rb:66:in `sh' # ./spec/support/helpers.rb:213:in `sys_exec' # ./spec/support/helpers.rb:107:in `bundle' # ./spec/commands/install_spec.rb:1262:in `block (3 levels) in <top (required)>' # ./spec/spec_helper.rb:105:in `block (4 levels) in <top (required)>' # ./spec/spec_helper.rb:105:in `block (3 levels) in <top (required)>' # ./spec/support/helpers.rb:342:in `block in with_gem_path_as' # ./spec/support/helpers.rb:356:in `without_env_side_effects' # ./spec/support/helpers.rb:337:in `with_gem_path_as' # ./spec/spec_helper.rb:104:in `block (2 levels) in <top (required)>' ``` The spec passed just fine on Ruby 3.3.5. I wonder if this change is related. Thank you! ---------------------------------------- Bug #20704: Windows: `-C` option does not work for multibyte path name https://bugs.ruby-lang.org/issues/20704#change-110508 * Author: nobu (Nobuyoshi Nakada) * Status: Closed * Backport: 3.1: REQUIRED, 3.2: DONE, 3.3: DONE ---------------------------------------- Related to [Bug #20699]. ``` C:> \Ruby33-x64\bin\ruby.exe -C xテスト_test -ep \Ruby33-x64\bin\ruby.exe: Can't chdir to xテスト_test (fatal) ``` https://github.com/ruby/ruby/pull/11493 -- https://bugs.ruby-lang.org/

Issue #20704 has been updated by deivid (David Rodríguez). I just found https://github.com/ruby/ruby/pull/11991 which seems a more likely culprit, sorry for the noise here! ---------------------------------------- Bug #20704: Windows: `-C` option does not work for multibyte path name https://bugs.ruby-lang.org/issues/20704#change-110540 * Author: nobu (Nobuyoshi Nakada) * Status: Closed * Backport: 3.1: REQUIRED, 3.2: DONE, 3.3: DONE ---------------------------------------- Related to [Bug #20699]. ``` C:> \Ruby33-x64\bin\ruby.exe -C xテスト_test -ep \Ruby33-x64\bin\ruby.exe: Can't chdir to xテスト_test (fatal) ``` https://github.com/ruby/ruby/pull/11493 -- https://bugs.ruby-lang.org/
participants (4)
-
deivid
-
k0kubun (Takashi Kokubun)
-
nagachika (Tomoyuki Chikanaga)
-
nobu (Nobuyoshi Nakada)