Age | Commit message (Collapse) | Author |
|
Mention that autoclose changes the behavior of explicit close in addition to implicit close at IO finalization.
Notes:
Merged: https://github.com/ruby/ruby/pull/5647
|
|
Notes:
Merged-By: k0kubun <[email protected]>
|
|
|
|
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/7316
|
|
This was already the behavior when a single `'external:internal'`
encoding specifier string was passed. This makes the behavior
consistent for the case where separate external and internal
encoding specifiers are provided.
While here, fix the IO#set_encoding method documentation to
state that either the first or second argument can be a string
with an encoding name, and describe the behavior when the
external encoding is binary.
Fixes [Bug #18899]
Notes:
Merged: https://github.com/ruby/ruby/pull/6280
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/6985
|
|
When `maxlen` is `nil`, it uses the data mode of the stream.
For example in the following:
```ruby
File.binwrite("a.txt", "\r\n\r")
p File.open("a.txt", "rt").read # "\n\n"
p File.open("a.txt", "rt").read(3) # "\r\n\r"
```
Note, this newline translation is _not_ specific to Windows.
Notes:
Merged: https://github.com/ruby/ruby/pull/6982
Merged-By: XrXr
|
|
Notes:
Merged-By: ioquatix <[email protected]>
|
|
[Feature #6047]
Currently it's grown by `BUFSIZ` (1024) on every iteration which is bit wasteful.
Instead we can double the capacity whenever there is less than `BUFSIZ` capacity
left.
Notes:
Merged: https://github.com/ruby/ruby/pull/6829
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/6700
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/6672
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/6787
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/6721
|
|
Notes:
Merged-By: BurdetteLamar <[email protected]>
|
|
In io.c treats:
#close
#close_read
#close_write
#closed
Notes:
Merged-By: BurdetteLamar <[email protected]>
|
|
Notes:
Merged-By: ioquatix <[email protected]>
|
|
(#6559)
Notes:
Merged-By: ioquatix <[email protected]>
|
|
Notes:
Merged-By: ioquatix <[email protected]>
|
|
Notes:
Merged-By: ioquatix <[email protected]>
|
|
Notes:
Merged-By: ioquatix <[email protected]>
|
|
Notes:
Merged-By: ioquatix <[email protected]>
|
|
Integrate io_streams.rdoc into io.c
Notes:
Merged-By: BurdetteLamar <[email protected]>
|
|
Moves Expect library doc into io.c.
Changes certain links to local sections, now pointing to sections in doc/io_streams.rdoc.
Removes local sections now superseded by sections in doc/io_streams.rdoc.
Notes:
Merged-By: BurdetteLamar <[email protected]>
|
|
|
|
Raise `ArgumentError` in `IO#sysread` on Windows when given a negative
length.
Fixes [Bug #18880]
Notes:
Merged: https://github.com/ruby/ruby/pull/6354
Merged-By: nobu <[email protected]>
|
|
Get rid of the conflict with system-provided small `off_t`.
Notes:
Merged: https://github.com/ruby/ruby/pull/6329
|
|
Makes behavior consistent with IO.readlines.
Fixes [Bug #18767]
Notes:
Merged: https://github.com/ruby/ruby/pull/5954
|
|
I don't think this is super well known so it's worth mentioning as it
can be a pitfall.
See: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/fopen-wfopen?view=msvc-170
Co-authored-by: Nobuyoshi Nakada <[email protected]>
Notes:
Merged: https://github.com/ruby/ruby/pull/6212
|
|
See: https://bugs.ruby-lang.org/issues/18882#note-13
[Bug #18882]
Notes:
Merged: https://github.com/ruby/ruby/pull/6212
|
|
|
|
The value affects the name of the backup file created, not the
name of the file modified (as the file is modified in place).
Fixes [Bug #18920]
|
|
|
|
Use IO#eof? instead of I#eof?
Notes:
Merged: https://github.com/ruby/ruby/pull/6172
|
|
nil separator means no sepator, so chomp should not remove a line
separator.
Partially Fixes [Bug #18770]
Notes:
Merged: https://github.com/ruby/ruby/pull/6164
|
|
[Misc #18891]
Notes:
Merged: https://github.com/ruby/ruby/pull/6094
|
|
chomp"
This reverts commit 04f86ad0b5d2fe4711ff300d855228a6aed55f33.
This is causing CI issues, reverting for now.
|
|
nil separator means no sepator, so chomp should not remove a line
separator.
Partially Fixes [Bug #18770]
Notes:
Merged: https://github.com/ruby/ruby/pull/5959
|
|
[Bug #18909]
Notes:
Merged: https://github.com/ruby/ruby/pull/6137
|
|
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/6097
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/6093
Merged-By: nobu <[email protected]>
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/6036
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/6039
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5867
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/6009
|
|
Fixes [Bug #18771]
Notes:
Merged: https://github.com/ruby/ruby/pull/5953
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5419
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5419
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5419
|