Simply a bug ?

K

Kane

Hello,

I've a problem under windows xp, someone will told "of course", but in
this case i didn't think it's only windows.
Bref, on IRB all characters "[ | {" and also all characters which use
the ALTGR key under a french keyboard are unusable.

Someone have also this problem ? Someone knows how fix it ?
 
D

Damphyr

Kane said:
Hello,

I've a problem under windows xp, someone will told "of course", but in
this case i didn't think it's only windows.
Bref, on IRB all characters "[ | {" and also all characters which use
the ALTGR key under a french keyboard are unusable.

Someone have also this problem ? Someone knows how fix it ?
Yeap, it happens with german and spanish keyboard layouts as well and is
one of the reasons I don't use irb much.
I work around it by switching to a US layout, but it is a PITA.
Just confirming, can't help much.
V.-

--
http://www.braveworld.net/riva

____________________________________________________________________
http://www.freemail.gr - äùñåÜí õðçñåóßá çëåêôñïíéêïý ôá÷õäñïìåßïõ.
http://www.freemail.gr - free email service for the Greek-speaking.
 
G

gabriele renzi

Kane ha scritto:
Hello,

I've a problem under windows xp, someone will told "of course", but in
this case i didn't think it's only windows.
Bref, on IRB all characters "[ | {" and also all characters which use
the ALTGR key under a french keyboard are unusable.

Someone have also this problem ? Someone knows how fix it ?

look in the archives for problems with irb and readline on win32,
basically you need to set up a proper .inputrc file or run irb with
--noreadline.
Sorry I don't have some urls at hand.
 
K

Kane

gabriele said:
look in the archives for problems with irb and readline on win32,
basically you need to set up a proper .inputrc file or run irb with
--noreadline.
Sorry I don't have some urls at hand.

Really, --noreadline fix the problerm. It's stange but its walk.

Thanks !
 
L

Lionel

Kane said:
Really, --noreadline fix the problerm. It's stange but its walk.

Thanks !

Hi, here is the solution (at least for french keyboards) :

1. create a file called .inputrc containing :
"\M-[": "["
"\M-]": "]"
"\M-{": "{"
"\M-}": "}"
"\M-\\": "\\"
"\M-|": "|"
"\M-@": "@"
"\M-~": "~"

I personally put this file at c:\Documents and Settings\Lionel\.inputrc

2. set an environment variable INPUTRC pointing to the full path of
inputrc. In my case :

INPUTRC=%HOMEPATH%\.inputrc

You can access to the environment variables under Windows XP in the
Advanced tab of the System control panel. You can also declare it for
your console session running by typing
SET INPUTRC=%HOMEPATH%\.inputrc

Then, readline behaves correctly and accepts these important characters.

Cheers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,201
Messages
2,571,049
Members
47,655
Latest member
eizareri

Latest Threads

Top