Skip to content

Commit

Permalink
IRB needs some tweaks to support running from classpath resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Mar 11, 2015
1 parent 3617d05 commit 440c956
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ matrix:
jdk: oraclejdk8
fast_finish: true
allow_failures:
- env: PHASE='-Pcomplete'
- env: PHASE='-Prake -Dtask=spec:profiler'
- env: PHASE='-Prake -Dtask=test:mri:jit'

Expand Down
6 changes: 5 additions & 1 deletion lib/ruby/stdlib/irb/magic-file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ def open(path)
encoding = detect_encoding(line)
internal_encoding = encoding
encoding ||= default_src_encoding
io.rewind
begin
io.rewind
rescue Errno::EPIPE
# ignore unseekable streams
end
io.set_encoding(encoding, internal_encoding)

if block_given?
Expand Down

0 comments on commit 440c956

Please sign in to comment.