From: Brian Candler Date: 2010-09-14T22:57:23+09:00 Subject: Re: Encoding error while installing rails on ruby 1.9.2 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. I'm pretty sure that rubygems under 1.8 would just have worked. After all, rubygems is a system utility. Its job is to fetch files and install them in the right places. "Encodings" don't help it to do that job, but they do make programs crash. > 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. -- Posted via http://www.ruby-forum.com/.