From: Bernard Kenik Date: 2010-09-15T02:02:14+09:00 Subject: Re: Encoding error while installing rails on ruby 1.9.2 Luis Lavena wrote: > On Sep 14, 10:57�am, Brian Candler wrote: >> Benoit Daloze wrote: >> > AFAIK, with 1.8, he would just get unreadable characters in his >> > terminal >> >> Given that the error messages from ruby are themselves readable, it's a >> fair bet that IBM737 is at least ASCII-compatible. >> > > This is what Roger Pack asked on Ruby core about IBM737 > >> > P.S.: Why `gem` is trying to convert from UTF-16LE ? >> >> I wondered that too. >> >> But more importantly, why is the locale's default_encoding significant? >> Is it reading files from the filesystem without specifying the locale >> (or binary mode)? If so that's a "bug" in rubygems, but it's the >> language which makes these bugs occur. > > Excellent question, seems to me that is trying to parse some gemspec > contents (my guess) > > Complete output of "gem install xxx --debug -V" will be great to have > when chcp is set to 737 Pardon if this considered to be high-jacking -- I installed ruby-1.9.2p0 using ruby installer. This is the responses I get that was asked to the op. ruby -v: ruby 1.9.2p0 (2010-08-18) [i386-mingw32] ruby -e 'puts Encoding.find "local"' IBM437 ruby -e 'puts $:' C:/Ruby192/lib/ruby/site_ruby/1.9.1 C:/Ruby192/lib/ruby/site_ruby/1.9.1/i386-msvcrt C:/Ruby192/lib/ruby/vendor_ruby/1.9.1 C:/Ruby192/lib/ruby/vendor_ruby/1.9.1/i386-msvcrt C:/Ruby192/lib/ruby/vendor_ruby C:/Ruby192/lib/ruby/1.9.1 C:/Ruby192/lib/ruby/1.9.1/i386-msvcrt Is IBM437 an appropriate answer? If not, how do I correct it? Thank You renard@nc.rr.com -- Posted via http://www.ruby-forum.com/.