Bug #2959
IO#codepoints crashes MRI/mingw on Windows
| Status: | Closed | Start date: | 03/14/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| Category: | - | |||
| Target version: | - | |||
| ruby -v: | ruby 1.9.2dev (2010-03-05 trunk 26821) [i386-mingw32] |
Description
One earlier MRI 1.9.2 builds on Windows, IO#codepoints just didn't do *anything*.
With more recent versions, MRI crashes.
ruby -ve "File.open('TODO').codepoints{|c| p c}"
ruby 1.9.2dev (2010-03-05 trunk 26821) [i386-mingw32]
-e:1: [BUG] Segmentation fault
ruby 1.9.2dev (2010-03-05 trunk 26821) [i386-mingw32]
-- control frame ----------
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC :codepoints
c:0003 p:0023 s:0006 b:0006 l:0010c4 d:000964 EVAL -e:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0010c4 d:0010c4 TOP
---------------------------
-- Ruby level backtrace information ----------------------------------------
-e:1:in `<main>'
-e:1:in `codepoints'
Associated revisions
* io.c (rb_io_each_codepoint): read directly when readconv is
needed but internal encoding is not set. [ruby-core:28650]
History
Updated by nobu (Nobuyoshi Nakada) about 2 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r26926. Vladimir, thank you for reporting this issue. Your contribution to Ruby is greatly appreciated. May Ruby be with you.