You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I reported this issue first in rubygems/rubygems#6288 and they recommended me to also create a issue here.
What problems are you experiencing?
After upgrading from rubygems (gem) from 3.3.3 to 3.4.4 I could not install any gem or run several gem-related commands.
For example gem env.
ERROR: While executing gem ... (Gem::CommandLineError)
Unknown environment option [Rincón]
or gem install rails:
ERROR: While executing gem ... (URI::InvalidURIError)
URI must be ascii only "Rinc\u00F3n".
I tried to investigate the issue myself and find out that there is value.split(" ") on C:\langs\Ruby32-x64\lib\ruby\3.2.0\rubygems\command.rb:79 that will split arguments by white space therefore my user name is being splitter and miss interpreted. This extra arg is set by lib\ruby\3.2.0\rubygems\defaults\operating_system.rb:11. Operating system is setting a default --install-dir and --bindir based on Gem.user_dir.
As a workaround for myself, I added wrapped both paths on ' in operating_system.rb and change the split to @extra_args = value.split(/\s+(?=([^']*"[^']*')*[^']*$)/) in command.rb (split by white spaces that are not between single quotes).
Steps to reproduce
Create a windows user that contains a white space on the user path.
1. Use Array for of rubygems options to allow directory with white space (fixes#322)
2. Don't overwrite GEM_HOME or BUNDLE_SYSTEM_BINDIR if already present
3. Don't set bindir to a non-existing directory
This is related to rubygems/rubygems#6332Fixes#332
1. Use Array for of rubygems options to allow directory with white space (fixes#332)
2. Don't overwrite GEM_HOME or BUNDLE_SYSTEM_BINDIR if already present
3. Don't set bindir to a non-existing directory
This is related to rubygems/rubygems#6332Fixes#332
I reported this issue first in rubygems/rubygems#6288 and they recommended me to also create a issue here.
What problems are you experiencing?
After upgrading from rubygems (gem) from 3.3.3 to 3.4.4 I could not install any gem or run several gem-related commands.
For example
gem env
.ERROR: While executing gem ... (Gem::CommandLineError)
Unknown environment option [Rincón]
or
gem install rails
:ERROR: While executing gem ... (URI::InvalidURIError)
URI must be ascii only "Rinc\u00F3n".
I tried to investigate the issue myself and find out that there is value.split(" ") on
C:\langs\Ruby32-x64\lib\ruby\3.2.0\rubygems\command.rb:79
that will split arguments by white space therefore my user name is being splitter and miss interpreted. This extra arg is set bylib\ruby\3.2.0\rubygems\defaults\operating_system.rb:11
. Operating system is setting a default --install-dir and --bindir based on Gem.user_dir.As a workaround for myself, I added wrapped both paths on
'
in operating_system.rb and change the split to@extra_args = value.split(/\s+(?=([^']*"[^']*')*[^']*$)/)
in command.rb (split by white spaces that are not between single quotes).Steps to reproduce
gem env
orgem install rails
What's the output from
ridk version
?ruby:
path: C:/langs/Ruby32-x64
version: 3.2.0
platform: x64-mingw-ucrt
ruby_installer:
package_version: 3.2.0-1
git_commit: 5507d7c
msys2:
path: C:\langs\Ruby32-x64\msys64
cc: gcc (Rev7, Built by MSYS2 project) 12.2.0
sh: GNU bash, version 5.2.9(1)-release (x86_64-pc-msys)
os: Microsoft Windows [Version 10.0.22621.1105]
The text was updated successfully, but these errors were encountered: