Bug #13831
closederror when try to install
Description
ruby 2.4.1p111 (2017-03-22 revision 58053) [x64-mingw32]
C:\Users\K>gem install sass
C:/Ruby24-x64/lib/ruby/2.4.0/win32/registry.rb:72:in find': unknown encoding name - CP720 (ArgumentError) from C:/Ruby24-x64/lib/ruby/2.4.0/win32/registry.rb:72:in
module:Win32'
from C:/Ruby24-x64/lib/ruby/2.4.0/win32/registry.rb:4:in <top (required)>' from C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0/ruby_installer/runtime/msys2_installation.rb:46:in
require'
from C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0/ruby_installer/runtime/msys2_installation.rb:46:in iterate_msys_paths' from C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0/ruby_installer/runtime/msys2_installation.rb:69:in
msys_path'
from C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0/ruby_installer/runtime/msys2_installation.rb:82:in mingw_bin_path' from C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0/ruby_installer/runtime/msys2_installation.rb:92:in
enable_dll_search_paths'
from C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0/ruby_installer/runtime/singleton.rb:27:in enable_dll_search_paths' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/defaults/operating_system.rb:3:in
<top (required)>'
from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems.rb:1345:in require' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems.rb:1345:in
<top (required)>'
from internal:gem_prelude:4:in require' from <internal:gem_prelude>:4:in
internal:gem_prelude'
C:\Users\K>
Updated by MSP-Greg (Greg L) about 7 years ago
I'm not that familiar with encoding issues, but I believe CP720 is an older code page. IF you enter cp 1252
in the console, then gem install sass
, does the gem install?
Regardless, given the nature of your question, the best place to report your issue (MinGW build, Ruby 2.4) is https://github.com/oneclick/rubyinstaller2/issues
Updated by duerst (Martin Dürst) about 7 years ago
MSP-Greg (Greg L) wrote:
I'm not that familiar with encoding issues, but I believe CP720 is an older code page.
Yes indeed. CP720 is the DOS encoding for Arabic.
IF you enter
cp 1252
in the console,
This should be chcp 1256
. The command is "change code page" (chcp
). The Windows encoding for Arabic is Windows-1256. Of course, chcp 1252
may also work, but that would be for Western European languages.
Regardless, given the nature of your question, the best place to report your issue (MinGW build, Ruby 2.4) is https://github.com/oneclick/rubyinstaller2/issues
Definitely.
Updated by hsbt (Hiroshi SHIBATA) about 7 years ago
- Status changed from Open to Third Party's Issue
I couldn't reproduce this.
C:\Users\hsbt>gem i sass
Fetching: sass-listen-4.0.0.gem (100%)
Successfully installed sass-listen-4.0.0
Fetching: sass-3.5.1.gem (100%)
Successfully installed sass-3.5.1
Parsing documentation for sass-listen-4.0.0
Installing ri documentation for sass-listen-4.0.0
Parsing documentation for sass-3.5.1
Installing ri documentation for sass-3.5.1
Done installing documentation for sass-listen, sass after 14 seconds
2 gems installed
C:\Users\hsbt>
Please report to packager's tracker.
Updated by joshc (Josh C) over 1 year ago
We've been carrying a patch for this issue for many years now and I submitted a PR: https://github.com/ruby/ruby/pull/7366 It affects ruby 3.2.1 through 1.9.3.
Updated by hsbt (Hiroshi SHIBATA) about 2 months ago
- Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 3.1: DONTNEED, 3.2: REQUIRED, 3.3: REQUIRED
- Status changed from Third Party's Issue to Closed
I merged https://github.com/ruby/ruby/pull/7366 for this.
Updated by nagachika (Tomoyuki Chikanaga) about 2 months ago
- Backport changed from 3.1: DONTNEED, 3.2: REQUIRED, 3.3: REQUIRED to 3.1: DONTNEED, 3.2: DONE, 3.3: REQUIRED
ruby_3_2 2d62c5d3d9a565fe50a3582124e6d4a58d130084 merged revision(s) 0d16c36d0ab2afa2ec79b72b229e69c141ebdaba.
Updated by k0kubun (Takashi Kokubun) 11 days ago
- Backport changed from 3.1: DONTNEED, 3.2: DONE, 3.3: REQUIRED to 3.1: DONTNEED, 3.2: DONE, 3.3: DONE
ruby_3_3 7446f7cdd103b129b8b750f577efd29e069176c0 merged revision(s) 0d16c36d0ab2afa2ec79b72b229e69c141ebdaba.