IRB and readline with non english keyboards #294

Open
neongrau opened this Issue Oct 29, 2015 · 5 comments

Projects

None yet

2 participants

@neongrau

A problem that is bothering me since years. With my (german) keyboard i was never able to type brackets/curly brackets in IRB or in a rails console. When starting irb with "--noreadline" these worked but i can't find a way to disbale readline on rails console and i really don't want to since it disables history on the cursor keys.
Every year or so i try gain to find a working solution wading through posts from 2008 with "$HOME/.inputrc" hacks that never ever worked for me again.

Also today i tried again after installing "ruby 2.2.3p173 (2015-08-18 revision 51636) [x64-mingw32]" on a freshly installed Windows Server 2012. Still not possible to type brackets in irb with readline. Still no joy with a manually created .inputrc file.

@Azolo
Member
Azolo commented Oct 29, 2015

This could be a problem with rb-readline, ruby itself, or both. Could you let me know which code page you're using, via running chcp

@neongrau

C:\Users\Administrator>chcp
Active code page: 850

@Azolo
Member
Azolo commented Oct 29, 2015

Try changing your code page to 65001 via chcp 65001 and see if that fixes it.

@neongrau

That only changes that i now also cannot type any german Umlaut characters. Still no luck with braces.

@Azolo
Member
Azolo commented Oct 29, 2015

You can't type Umlaut characters now? Weird 65001 is UTF-8 and it shouldn't affect your OS level keyboard settings.

Lemme look into some things. But the readline implementation RubyInstaller uses is rb-readline. It might be a good idea to file a bug report there.

@neongrau neongrau referenced this issue in ConnorAtherton/rb-readline Oct 29, 2015
Open

IRB and readline with non english keyboards on Windows #126

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment