# IronRuby 1.1.1 IIRB failing

**URL:** <https://www.ruby-forum.com/t/ironruby-1-1-1-iirb-failing/198079>\
**Category:** IronRuby\
**Created:** [October 26, 2010, 4:41am UTC](https://www.ruby-forum.com/t/ironruby-1-1-1-iirb-failing/198079 "2010-10-26T04:41:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [October 26, 2010, 4:41am UTC](https://www.ruby-forum.com/t/ironruby-1-1-1-iirb-failing/198079/1 "2010-10-26T04:41:24Z")

</div>

After upgrading to IronRuby 1.1.1, I try run IIRB, and I get the  
following  
exception:

Have I screwed up my install? What I did was this:

1. Ran the IronRuby installer
2. Copied the bin and lib folders to a local folder that I have checked  
into  
source control (to deploy IronRuby to other machines)
3. I wanted the dll’s, and the installer seemed to ONLY (!?!?!?) put  
them in  
the GAC, so I went into the GAC and copied them out, then put them in my  
local ruby/bin folder

The bytes are [B8] if running in powershell and [D0] in cmd

mscorlib:0:in `Throw': Unable to translate bytes [B8] at index 2 from specified code page to Unicode. (System::Text::Dec oderFallbackException) from mscorlib:0:in`Fallback’  
from mscorlib:0:in `InternalFallback' from mscorlib:0:in`GetCharCount’  
from mscorlib:0:in `GetCharCount' from mscorlib:0:in`GetChars’  
from  
C:/Dev/TEST/ruby/Lib/ruby/site\_ruby/1.9.1/rbreadline.rb:1845:in  
`[]' from C:/Dev/TEST/ruby/Lib/ruby/site_ruby/1.9.1/rbreadline.rb:1845:in`\_rl\_get\_screen\_size’  
from  
C:/Dev/TEST/ruby/Lib/ruby/site\_ruby/1.9.1/rbreadline.rb:1975:in  
`_rl_init_terminal_io' from C:/Dev/TEST/ruby/Lib/ruby/site_ruby/1.9.1/rbreadline.rb:2491:in`readline\_initialize\_everything’  
from  
C:/Dev/TEST/ruby/Lib/ruby/site\_ruby/1.9.1/rbreadline.rb:3726:in  
`rl_initialize' from C:/Dev/TEST/ruby/Lib/ruby/site_ruby/1.9.1/rbreadline.rb:4720:in`readline’  
from C:/Dev/TEST/ruby/Lib/ruby/site\_ruby/1.9.1/readline.rb:40:in  
`readline' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/input-method.rb:115:in`gets’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb.rb:139:in `eval_input' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb.rb:273:in`signal\_status’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb.rb:138:in `eval_input' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:188:in`[]’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:188:in  
`buf_input' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:103:in`getc’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/slex.rb:205:in  
`match_io' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/slex.rb:75:in`match’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:286:in  
`token' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:262:in`lex’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:233:in  
`each_top_level_statement' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:229:in`loop’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:229:in  
`each_top_level_statement' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:228:in`catch’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:228:in  
`each_top_level_statement' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb.rb:155:in`eval\_input’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb.rb:70:in `start' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb.rb:69:in`catch’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb.rb:69:in `start’  
from C:/Dev/TEST/ruby/bin/irb:13

---

<div class="post-metadata">

**Author:** ![Orion\_E](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/65b543/32.png) [@Orion\_E](https://www.ruby-forum.com/u/Orion_E)\
**Post date:** [October 26, 2010, 6:21am UTC](https://www.ruby-forum.com/t/ironruby-1-1-1-iirb-failing/198079/2 "2010-10-26T06:21:58Z")

</div>

Right, the installer installs only to GAC. You can download all the  
binaries from  
[http://ironruby.codeplex.com/releases/view/49097#DownloadId=159562.There](http://ironruby.codeplex.com/releases/view/49097#DownloadId=159562.There)  
is no point copying them to Program Files. Once they are in the GAC all  
apps load them from there. You can build a redistributable msm Windows  
installer package if you want to include IronRuby in your Windows app or  
you can just grab the binaries from the link above if you want an xcopy  
deployment.

It seems irb doesn’t like the command you’re writing … does it include  
non-ASCII characters?

Tomas

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Orion E.  
Sent: Monday, October 25, 2010 4:17 PM  
To: removed\_email\_address@domain.invalid  
Subject: [Ironruby-core] IronRuby 1.1.1 IIRB failing

After upgrading to IronRuby 1.1.1, I try run IIRB, and I get the  
following exception:

Have I screwed up my install? What I did was this:

1. Ran the IronRuby installer
2. Copied the bin and lib folders to a local folder that I have checked  
into source control (to deploy IronRuby to other machines)
3. I wanted the dll’s, and the installer seemed to ONLY (!?!?!?) put  
them in the GAC, so I went into the GAC and copied them out, then put  
them in my local ruby/bin folder

The bytes are [B8] if running in powershell and [D0] in cmd

mscorlib:0:in `Throw': Unable to translate bytes [B8] at index 2 from specified code page to Unicode. (System::Text::Dec oderFallbackException) from mscorlib:0:in `Fallback’  
from mscorlib:0:in `InternalFallback' from mscorlib:0:in `GetCharCount’  
from mscorlib:0:in `GetCharCount' from mscorlib:0:in `GetChars’  
from  
C:/Dev/TEST/ruby/Lib/ruby/site\_ruby/1.9.1/rbreadline.rb:1845:in `[]' from C:/Dev/TEST/ruby/Lib/ruby/site_ruby/1.9.1/rbreadline.rb:1845:in `\_rl\_get\_screen\_size’  
from  
C:/Dev/TEST/ruby/Lib/ruby/site\_ruby/1.9.1/rbreadline.rb:1975:in  
`_rl_init_terminal_io' from C:/Dev/TEST/ruby/Lib/ruby/site_ruby/1.9.1/rbreadline.rb:2491:in `readline\_initialize\_everything’  
from  
C:/Dev/TEST/ruby/Lib/ruby/site\_ruby/1.9.1/rbreadline.rb:3726:in  
`rl_initialize' from C:/Dev/TEST/ruby/Lib/ruby/site_ruby/1.9.1/rbreadline.rb:4720:in `readline’  
from C:/Dev/TEST/ruby/Lib/ruby/site\_ruby/1.9.1/readline.rb:40:in  
`readline' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/input-method.rb:115:in `gets’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb.rb:139:in `eval_input' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb.rb:273:in `signal\_status’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb.rb:138:in `eval_input' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:188:in `[]’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:188:in  
`buf_input' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:103:in `getc’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/slex.rb:205:in  
`match_io' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/slex.rb:75:in `match’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:286:in  
`token' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:262:in `lex’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:233:in  
`each_top_level_statement' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `loop’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:229:in  
`each_top_level_statement' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:228:in `catch’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb/ruby-lex.rb:228:in  
`each_top_level_statement' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb.rb:155:in `eval\_input’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb.rb:70:in `start' from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb.rb:69:in `catch’  
from C:/Dev/TEST/ruby/Lib/ruby/1.9.1/irb.rb:69:in `start’  
from C:/Dev/TEST/ruby/bin/irb:13

---

<div class="post-metadata">

**Author:** ![Orion\_E](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/65b543/32.png) [@Orion\_E](https://www.ruby-forum.com/u/Orion_E)\
**Post date:** [October 27, 2010, 4:33am UTC](https://www.ruby-forum.com/t/ironruby-1-1-1-iirb-failing/198079/3 "2010-10-27T04:33:46Z")

</div>

I’m not writing any characters, I’m just running iirb from the command  
line…

On Tue, Oct 26, 2010 at 3:52 PM, Tomas M. \<

---

<div class="post-metadata">

**Author:** ![Orion\_E](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/65b543/32.png) [@Orion\_E](https://www.ruby-forum.com/u/Orion_E)\
**Post date:** [October 29, 2010, 10:43am UTC](https://www.ruby-forum.com/t/ironruby-1-1-1-iirb-failing/198079/4 "2010-10-29T10:43:23Z")

</div>

Hi,

I got a similar error after performing a clean install of IR 1.1.1 with  
the  
Visual Studio Tools under XP SP3 (Swedish with MUI), and might have a  
workaround (see below).

Orion E. wrote:

> After upgrading to IronRuby 1.1.1, I try run IIRB, and I get the  
> following exception:

[snip]

> ```
> from
> 
> ```

[snip rest of callstack]

## Here’s what I got:

## C:\foo\bar\>iirb mscorlib:0:in `Throw': Unable to translate bytes [84] at index 0 from specified code page to Unicode. (System::Text::DecoderFallback Exception) from mscorlib:0:in `Fallback’ from mscorlib:0:in `InternalFallback' from mscorlib:0:in `GetCharCount’ from mscorlib:0:in `GetCharCount' from mscorlib:0:in `GetChars’ from C:/Program/IronRuby 1.1/Lib/ruby/site\_ruby/1.9.1/rbreadline.rb:1845:in `[]' from C:/Program/IronRuby 1.1/Lib/ruby/site_ruby/1.9.1/rbreadline.rb:1845:in `\_rl\_get\_screen\_size’ from C:/Program/IronRuby 1.1/Lib/ruby/site\_ruby/1.9.1/rbreadline.rb:1975:in `_rl_init_terminal_io' from C:/Program/IronRuby 1.1/Lib/ruby/site_ruby/1.9.1/rbreadline.rb:2491:in `readline\_initialize\_everything’ from C:/Program/IronRuby 1.1/Lib/ruby/site\_ruby/1.9.1/rbreadline.rb:3726:in `rl_initialize' from C:/Program/IronRuby 1.1/Lib/ruby/site_ruby/1.9.1/rbreadline.rb:4720:in `readline’ from C:/Program/IronRuby 1.1/Lib/ruby/site\_ruby/1.9.1/readline.rb:40:in `readline' from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb/input-method.rb:115:in `gets’ from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb.rb:139:in `eval_input' from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb.rb:273:in `signal\_status’ from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb.rb:138:in `eval_input' from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb/ruby-lex.rb:188:in `’ from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb/ruby-lex.rb:188:in `buf_input' from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb/ruby-lex.rb:103:in `getc’ from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb/slex.rb:205:in `match_io' from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb/slex.rb:75:in `match’ from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb/ruby-lex.rb:286:in `token' from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb/ruby-lex.rb:262:in `lex’ from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb/ruby-lex.rb:233:in `each_top_level_statement' from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `loop’ from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `each_top_level_statement' from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb/ruby-lex.rb:228:in `catch’ from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb/ruby-lex.rb:228:in `each_top_level_statement' from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb.rb:155:in `eval\_input’ from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb.rb:70:in `start' from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb.rb:69:in `catch’ from C:/Program/IronRuby 1.1/Lib/ruby/1.9.1/irb.rb:69:in `start’ from C:/Program/IronRuby 1.1/bin/irb:13

The funny thing was, that if I opened a command prompt as an  
administrator  
(e.g. runas /user: cmd) and ran iirb it worked. I originally  
thought  
it had something to do with privileges (and it still might), but what  
seemed  
to work around the problem was resetting the Command Window size and  
buffer  
size(!) for the current user to the default values of 80x25, 80x300 (the  
\_rl\_get\_screen\_size in the stack trace gave me the hint):

* * *

C:\foo\bar\>iirb  
irb(main):001:0\> puts ‘Hello World’  
Hello World  
=\> nil  
irb(main):002:0\>

---

<div class="post-metadata">

**Author:** ![Orion\_E](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/65b543/32.png) [@Orion\_E](https://www.ruby-forum.com/u/Orion_E)\
**Post date:** [April 5, 2012, 2:08pm UTC](https://www.ruby-forum.com/t/ironruby-1-1-1-iirb-failing/198079/5 "2012-04-05T14:08:53Z")

</div>

Hmmm, same problem here after installing 1.1.1 (after a previous 1.0  
install). I tried resetting sizes and still no success. It would be  
neat to have this work 🙂
