Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Rails console: Special Characters not working

#200
  • script/console is not usable under Windows with german keyboard. It's not even possible to write simple special characters like [].
  • Rails console on Netbeans 6.1 is not starting.

Both problems are solved with this change:

Changing the last line of \ruby\lib\ruby\gems\1.8\gems\rails-2.0.2\lib\commands\console.rb

from

exec "#{options[:irb]} #{libs} --simple-prompt"

to

exec "#{irb} #{libs} --noreadline --simple-prompt"

helps.

This problem is known since rails-1.1.2 or even earlier versions.

Reported by brot15 · May 14th, 2008 @ 09:54 PM

State: wontfix
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to invalid

    Then command history won't work. This sounds like a problem with your readline install, not the console.

    May 15th, 2008 @ 02:06 AM

  2. brot15
    brot15

    This is not a problem of my personal install. It's on all installations on Windows XP with non-english keyboards. There is an article on rubyonrails.org about this issue. And there is a solution for readline support AND tab completion as well.

    http://wiki.rubyonrails.org/rail...

    May 15th, 2008 @ 06:59 AM

  3. brot15
    brot15

    I think this is a big problem for newbies outside USA. The console is useless without brackets, so there is no try and error just to understand how Rails works.

    It would be a nicer welcome in Rails if you don't have to patch it before first use (and after every update).

    May 15th, 2008 @ 06:59 AM

  4. Jeremy Kemper
    Jeremy Kemper
    • State changed from invalid to incomplete

    Ok, how about a patch to check for Windows and add the --noreadline option only in that case?

    May 15th, 2008 @ 06:58 AM

  5. brot15
    brot15
    • State changed from incomplete to invalid

    :-) this is a good idea, quick & easy.

    Alternatively, here's a workaround with readline:

    http://www.peterkrantz.com/2005/...

    Thanks.

    May 15th, 2008 @ 03:05 PM

  6. brot15
    brot15
    • State changed from invalid to incomplete

    State changed from “incomplete” to “invalid”

    This has been marked as spam

    Is there a problem with my Lighthouse account?

    May 15th, 2008 @ 03:05 PM

  7. CancelProfileIsBroken
    CancelProfileIsBroken
    • Tag set to bugmash, console, windows

    August 3rd, 2009 @ 02:45 PM

  8. John Pignata
    John Pignata

    A patch doing what Jeremy suggested - I don't have the necessary operating system of foreign character keyboard to test it.

    August 9th, 2009 @ 06:24 AM

  9. Jeremy Kemper
    Jeremy Kemper
    • State changed from incomplete to wontfix
    • Tag changed from bugmash, console, windows to console, windows

    The new windows ruby installer includes readline support!

    See http://rubyinstaller.org/downloads/

    August 9th, 2009 @ 07:30 PM