[#64703] Add `Hash#fetch_at` (issue #10017) — Wojtek Mach <wojtek@...>
Hey guys
1 message
2014/09/01
[#64711] [ruby-trunk - Bug #10193] [Closed] TestIO#test_readpartial_locktmp fails randomly — nobu@...
Issue #10193 has been updated by Nobuyoshi Nakada.
3 messages
2014/09/02
[#64744] [ruby-trunk - Bug #10202] [Open] TestBenchmark#test_realtime_output breaks on ARM — v.ondruch@...
Issue #10202 has been reported by Vit Ondruch.
3 messages
2014/09/03
[#64823] documenting constants — Xavier Noria <fxn@...>
I am writing a Rails guide about constant autoloading in Ruby on
5 messages
2014/09/07
[#64838] [ruby-trunk - Bug #10212] [Open] MRI is not for lambda calculus — ko1@...
Issue #10212 has been reported by Koichi Sasada.
6 messages
2014/09/08
[#64858] Re: [ruby-trunk - Bug #10212] [Open] MRI is not for lambda calculus
— Eric Wong <normalperson@...>
2014/09/08
rb_env_t may use a flexible array, helps a little even on my busy system:
[#64871] Re: [ruby-trunk - Bug #10212] [Open] MRI is not for lambda calculus
— SASADA Koichi <ko1@...>
2014/09/08
(2014/09/08 19:48), Eric Wong wrote:
[#64972] [ruby-trunk - Bug #10231] [Open] Process.detach(pid) defines new singleton classes every call — headius@...
Issue #10231 has been reported by Charles Nutter.
3 messages
2014/09/11
[#64980] [ruby-trunk - Bug #10212] MRI is not for lambda calculus — ko1@...
Issue #10212 has been updated by Koichi Sasada.
4 messages
2014/09/12
[#65142] [ruby-trunk - Feature #10267] [Open] Number of processors — akr@...
Issue #10267 has been reported by Akira Tanaka.
4 messages
2014/09/20
[#65144] Re: [ruby-trunk - Feature #10267] [Open] Number of processors
— Eric Wong <normalperson@...>
2014/09/20
akr@fsij.org wrote:
[#65210] [ruby-trunk - misc #10278] [Assigned] [RFC] st.c: use ccan linked list — nobu@...
Issue #10278 has been updated by Nobuyoshi Nakada.
3 messages
2014/09/22
[ruby-core:65296] [ruby-trunk - Bug #10300] Encoding error in conversion from UTF-16LE to UTF-8 to CP850
From:
luislavena@...
Date:
2014-09-27 15:07:21 UTC
List:
ruby-core #65296
Issue #10300 has been updated by Luis Lavena.
Subject changed from Troubles installing gems on Windows 7 to Encoding error in conversion from UTF-16LE to UTF-8 to CP850
----------------------------------------
Bug #10300: Encoding error in conversion from UTF-16LE to UTF-8 to CP850
https://bugs.ruby-lang.org/issues/10300#change-49119
* Author: Guillaume GROSSETIE
* Status: Open
* Priority: Normal
* Assignee: cruby-windows
* Category: platform/windows
* Target version:
* ruby -v: 2.1.3p242 (2014-09-19 revision 47630) [x64-mingw32]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
Hello,
I downloaded Ruby 2.1.3 from http://rubyinstaller.org/downloads/ and tried to install gems:
~~~
$ gem install asciidoctor
ERROR: While executing gem ... (Encoding::UndefinedConversionError)
U+2019 to CP850 in conversion from UTF-16LE to UTF-8 to CP850
~~~
I googled the error and found a number of "solutions":
~~~
$ gem install asciidoctor -E utf-8 --no-rdoc
$ LC_ALL=fr.FR.UTF-8 LANG= gem install ascidoctor
$ export LC_CTYPE=utf-8
$ export RUBYOPT='-E utf-8'
$ ruby -e 'p Encoding.default_external'
#<Encoding:UTF-8>
~~~
The Encoding.default_external was now on UTF-8 but the error persisted.
My environment:
~~~
$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 2.2.2
- RUBY VERSION: 2.1.3 (2014-09-19 patchlevel 242) [x64-mingw32]
- INSTALLATION DIRECTORY: c:/Ruby21-x64/lib/ruby/gems/2.1.0
- RUBY EXECUTABLE: c:/Ruby21-x64/bin/ruby.exe
- EXECUTABLE DIRECTORY: c:/Ruby21-x64/bin
- SPEC CACHE DIRECTORY: c:/Users/gg1504en/.gem/specs
- RUBYGEMS PLATFORMS:
- ruby
- x64-mingw32
- GEM PATHS:
- c:/Ruby21-x64/lib/ruby/gems/2.1.0
- c:/Users/gg1504en/.gem/ruby/2.1.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- c:\Users\gg1504en\bin
- .
- C:\dev\softs\git\local\bin
- C:\dev\softs\git\mingw\bin
- C:\dev\softs\git\bin
- c:\progra~1\oracle\ora_10.2.0_clt\bin
- c:\Windows\system32
- c:\Windows
- c:\Windows\System32\Wbem
- c:\Windows\System32\WindowsPowerShell\v1.0\
- c:\Program Files (x86)\QuickTime Alternative\QTSystem
- c:\Program Files (x86)\Microsoft Application Virtualization Client
- c:\Windows\system32\BioRTime
- c:\Windows\SysWOW64\BioRTime
- c:\dev\softs\java\jdk1.7.0_55\bin
- c:\dev\softs\maven-3.0.5\bin
- c:\Program Files (x86)\GNU\GnuPG\pub
- c:\Ruby21-x64\bin
$ ruby -v
ruby 2.1.3p242 (2014-09-19 revision 47630) [x64-mingw32]
$ gem -v
2.2.2
~~~
I turned on trace:
~~~
$ gem install --backtrace -V --no-ri --no-rdoc asciidoctor
ERROR: While executing gem ... (Encoding::UndefinedConversionError)
U+2019 to CP850 in conversion from UTF-16LE to UTF-8 to CP850
c:/Ruby21-x64/lib/ruby/2.1.0/win32/registry.rb:178:in `encode'
c:/Ruby21-x64/lib/ruby/2.1.0/win32/registry.rb:178:in `initialize'
c:/Ruby21-x64/lib/ruby/2.1.0/win32/registry.rb:238:in `exception'
c:/Ruby21-x64/lib/ruby/2.1.0/win32/registry.rb:238:in `raise'
c:/Ruby21-x64/lib/ruby/2.1.0/win32/registry.rb:238:in `check'
c:/Ruby21-x64/lib/ruby/2.1.0/win32/registry.rb:300:in `EnumKey'
c:/Ruby21-x64/lib/ruby/2.1.0/win32/registry.rb:594:in `each_key'
c:/Ruby21-x64/lib/ruby/2.1.0/win32/resolv.rb:85:in `block (2 levels) in get_info'
c:/Ruby21-x64/lib/ruby/2.1.0/win32/registry.rb:422:in `open'
c:/Ruby21-x64/lib/ruby/2.1.0/win32/registry.rb:529:in `open'
c:/Ruby21-x64/lib/ruby/2.1.0/win32/resolv.rb:84:in `block in get_info'
c:/Ruby21-x64/lib/ruby/2.1.0/win32/registry.rb:422:in `open'
c:/Ruby21-x64/lib/ruby/2.1.0/win32/registry.rb:529:in `open'
c:/Ruby21-x64/lib/ruby/2.1.0/win32/resolv.rb:61:in `get_info'
c:/Ruby21-x64/lib/ruby/2.1.0/win32/resolv.rb:19:in `get_resolv_info'
c:/Ruby21-x64/lib/ruby/2.1.0/resolv.rb:969:in `default_config_hash'
c:/Ruby21-x64/lib/ruby/2.1.0/resolv.rb:986:in `block in lazy_initialize'
c:/Ruby21-x64/lib/ruby/2.1.0/resolv.rb:979:in `synchronize'
c:/Ruby21-x64/lib/ruby/2.1.0/resolv.rb:979:in `lazy_initialize'
c:/Ruby21-x64/lib/ruby/2.1.0/resolv.rb:358:in `block in lazy_initialize'
c:/Ruby21-x64/lib/ruby/2.1.0/resolv.rb:356:in `synchronize'
c:/Ruby21-x64/lib/ruby/2.1.0/resolv.rb:356:in `lazy_initialize'
c:/Ruby21-x64/lib/ruby/2.1.0/resolv.rb:516:in `fetch_resource'
c:/Ruby21-x64/lib/ruby/2.1.0/resolv.rb:510:in `each_resource'
c:/Ruby21-x64/lib/ruby/2.1.0/resolv.rb:491:in `getresource'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/remote_fetcher.rb:88:in `api_endpoint'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/source.rb:42:in `api_uri'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/source.rb:170:in `load_specs'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/spec_fetcher.rb:266:in `tuples_for'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/spec_fetcher.rb:226:in `block in available_specs'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/source_list.rb:97:in `each'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/source_list.rb:97:in `each_source'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/spec_fetcher.rb:222:in `available_specs'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/spec_fetcher.rb:102:in `search_for_dependency'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/dependency_installer.rb:216:in `find_gems_with_sources'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/dependency_installer.rb:292:in `find_spec_by_name_and_version'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/dependency_installer.rb:166:in `available_set_for'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/dependency_installer.rb:418:in `resolve_dependencies'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/dependency_installer.rb:371:in `install'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/commands/install_command.rb:219:in `install_gem'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/commands/install_command.rb:263:in `block in install_gems'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/commands/install_command.rb:259:in `each'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/commands/install_command.rb:259:in `install_gems'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/commands/install_command.rb:171:in `execute'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/command.rb:305:in `invoke_with_build_args'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/command_manager.rb:167:in `process_args'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/command_manager.rb:137:in `run'
c:/Ruby21-x64/lib/ruby/2.1.0/rubygems/gem_runner.rb:54:in `run'
c:/Ruby21-x64/bin/gem:21:in `<main>'
~~~
To resolve this issue I manually modified line 70 of registry.rb:
~~~
- LOCALE = Encoding.find(Encoding.locale_charmap)
+ LOCALE = Encoding::UTF_8
+ #LOCALE = Encoding.find(Encoding.locale_charmap)
~~~
Is it possible to change locale_charmap without hacking registry.rb ? UTF-8 is maybe a better default value ?
Thanks,
Guillaume
--
https://bugs.ruby-lang.org/