[#70257] [Ruby trunk - Feature #11420] [Open] Introduce ID key table into MRI — ko1@...

Issue #11420 has been reported by Koichi Sasada.

11 messages 2015/08/06

[ruby-core:70405] [Ruby trunk - Feature #1667] IO#codepoints, IO#each_codepoint, and StringIO

From: nobu@...
Date: 2015-08-17 01:40:52 UTC
List: ruby-core #70405
Issue #1667 has been updated by Nobuyoshi Nakada.

Description updated

Why is "an incomplete character before EOF" ignored?

~~~c
		if (more_char(fptr) == MORE_CHAR_FINISHED) {
		    clear_readconv(fptr);
		    /* ignore an incomplete character before EOF */
		    return io;
		}
~~~


----------------------------------------
Feature #1667: IO#codepoints, IO#each_codepoint, and StringIO
https://bugs.ruby-lang.org/issues/1667#change-53808

* Author: Marc-Andre Lafortune
* Status: Closed
* Priority: Normal
* Assignee: 
----------------------------------------
Almost all "iterators" of `String` are present in `IO` and `StringIO`: `#each_char`, `#each_byte`, `#each_line` and their corresponding `#chars`, `#bytes`, `#lines`. Only `#each_codepoint` and `#codepoints` are not defined in `IO` and `StringIO`.

Unless there is a compelling reason not to, it would be useful if these were defined. This would mirror the coherence with all other `each_`* methods that exist in both `String`, `IO` and `StringIO`.





-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next