EOF handling in case of reading program from standard input
-----------------------------------------------------------
Key: JRUBY-1855
URL: http://jira.codehaus.org/browse/JRUBY-1855
Project: JRuby
Issue Type: Bug
Components: Parser
Affects Versions: JRuby 1.1b1
Environment: Mac OS X 10.4.11, Java 1.5.0_07, JRuby 1.1-SNAPSHOT
Reporter: Takanori Ishikawa
Assignee: Thomas E Enebo
Fix For: JRuby 1.1b2
Attachments: eof_handling.patch
JRuby does not handle EOF character in case of reading program from its
standard input.
I have to hit Ctrl-D twice.
The problem is the EOF character is ignored by the lexer in some case, and next
read operation will be blocking.
The posted patch adds a simple FilterInputStream subclass,
EOFWrappedInputStream, which remembers previously happened EOF.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email