This project is archived and is in readonly mode.
Rails console: Special Characters not working
Reported by brot15 | May 14th, 2008 @ 09:54 PM
- 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.
Comments and changes to this ticket
-
Jeremy Kemper May 15th, 2008 @ 02:06 AM
- State changed from new to invalid
Then command history won't work. This sounds like a problem with your readline install, not the console.
-
brot15 May 15th, 2008 @ 06:59 AM
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.
-
brot15 May 15th, 2008 @ 06:59 AM
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).
-
Jeremy Kemper May 15th, 2008 @ 06:58 AM
- State changed from invalid to incomplete
Ok, how about a patch to check for Windows and add the --noreadline option only in that case?
-
brot15 May 15th, 2008 @ 03:05 PM
- 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.
-
brot15 May 15th, 2008 @ 03:05 PM
- 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?
-
CancelProfileIsBroken August 3rd, 2009 @ 02:45 PM
- Tag set to bugmash, console, windows
-
John Pignata August 9th, 2009 @ 06:24 AM
A patch doing what Jeremy suggested - I don't have the necessary operating system of foreign character keyboard to test it.
-
Jeremy Kemper August 9th, 2009 @ 07:30 PM
- State changed from incomplete to wontfix
- Tag changed from bugmash, console, windows to console, windows
The new windows ruby installer includes readline support!
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>