Problems with Finnish Keyboard and Ruby's irb
I ran into a problem with Ruby's interactive shell, irb, on Windows XP: it did not accept alt-gr generated characters with the Finnish keyboard, which prevents you from typing characters such as [ or @. The solution was found here:
Basically create the following file, .inputrc, in your home directory(C:\Documents and Settings\<username>):
"\M-[": "["
"\M-]": "]"
"\M-{": "{"
"\M-}": "}"
"\M-\\": "\\"
"\M-|": "|"
"\M-@": "@"
"\M-~": "~"
"\M-$": "$"
Then add the following line to the start of <ruby-dist>\bin\irb.bat:
@echo off
set HOME=%HOMEPATH%
and it should work fine. A real showstopper, though, which I haven't seen in other tools (such as Python's shell).

4 Comments:
There is something that is missing here. Remember good credit is helpful and Bad credit repair mortgage loan fix repair credit FICO bankruptcy foreclosure equity equifax experian TU Transunion dispute That might improve the interest rate and again lower payments are definitely preferred.
Thanks, it worked. I've avoided IRB until now, just because @$[{ and so on didn't work (Norwegian keyboard here.).
But today I installed Cygwin in order to get the RubyInline to work, and didn't have much choice. Thanks again.
Thanks for this tip. It made ruby script/console finally working like expected on a german keyboard. A little sidenote: If your rails project resides on another partition than your Homepath (or if you want to use irb from another partition) the %HOMEPATH% environment var won't work. I had to reference the explicit path (e.g. d:\dokumente und einstellungen\my_profile
Cheers,
Jan
Thanks a lot for your help!
Swiss german keyboard ....
Wolf
Post a Comment
<< Home