Project

General

Profile

Activity

From 04/03/2022 to 04/09/2022

04/09/2022

08:43 AM Revision 5b467400 (git): [DOC]Some link prefix replace
S_H_ (Shun Hiraoka)
08:22 AM Misc #18687: [ANN] Upgraded bugs.ruby-lang.org to Redmine 5.0
I fixed the issue of mailing-list integration.
hsbt (Hiroshi SHIBATA)
06:39 AM Misc #18687: [ANN] Upgraded bugs.ruby-lang.org to Redmine 5.0
I found the mailing-list integration is broken now. hsbt (Hiroshi SHIBATA)
06:06 AM Misc #18687 (Closed): [ANN] Upgraded bugs.ruby-lang.org to Redmine 5.0
Today, I migrated this tracker Redmine 4.2 to 5.0.
It has the following major changes.
* Based on Rails 6.1.
* Allowed username mention like `@hsbt` with autocomplete.
* Support CommonMaker for Markdown formatting.
Release not...
hsbt (Hiroshi SHIBATA)

04/08/2022

07:25 PM Revision 83aeec8a (git): * 2022-04-09 [ci skip]
git[bot]
07:25 PM Revision 70415071 (git): Fix some RDoc links (#5778)
burdettelamar (Burdette Lamar)
06:52 PM Bug #18686 (Closed): Regexp supporting unexpected age properties in Ruby < 3.2
I've encountered this on GitHub Actions running Ubuntu 20. I cannot reproduce it locally on Darwin/arm64.
It is a weird bug and far from critical, but it might indicate some underlying problem.
I've found that ...
- all Ruby ver...
janosch-x (Janosch Müller)
12:30 PM Revision c77a31df (git): call `const_added` after `autoload`
When calling `const_added` while process in `autoload`, it can
cause synchronization issue because of a thread swithcing.
http://ci.rvm.jp/logfiles/brlog.trunk.20220407-152213#L489
```
1)
Module#autoload (concurrently) raises a LoadErr...
ko1 (Koichi Sasada)
10:52 AM Feature #18685: Enumerator.product: Cartesian product of enumerables
Isn't it significantly slower than doing it manually due to all these extra block and method calls etc in between? Eregon (Benoit Daloze)
07:20 AM Feature #18685 (Closed): Enumerator.product: Cartesian product of enumerables
I'd like to add a new Enumerator class method for generating the Cartesian product of given enumerators.
A product here does not mean an accumulated array of arrays, but an enumerator to enumerate all combinations.
```ruby
product =...
knu (Akinori MUSHA)
04:31 AM Revision 798e2163 (git): sync `vm->constant_cache`
On multi-ractors, `vm->constant_cache` (and so on) can be accessed
in parallel so we need to synchronize the accesses to them.
http://rubyci.s3.amazonaws.com/centos7/ruby-master/log/20220407T213003Z.log.html.gz#btest
ko1 (Koichi Sasada)

04/07/2022

07:29 PM Revision 9ca3d537 (git): All-in-one RDoc for class String (#5777)
burdettelamar (Burdette Lamar)
04:49 PM Revision a7d7ee90 (git): * 2022-04-08 [ci skip]
git[bot]
04:49 PM Revision 16e08d53 (git): Fix strict aliasing issue
`rb_id_table_lookup()` writes to a `VALUE`, which is definitely a distinct
type from `st_table *`. With LTO, the compiler is allowed by N1256
§6.5p7 to remove the output parameter write via type-based alias
analysis.
See also: a0a8f2abf53
alanwu (Alan Wu)
04:12 PM Bug #18684: Support for out of source build
Please precisely write what you did. The following process works well for me.
```
$ tar xf ruby-3.1.1.tar.gz
$ mkdir ruby-build
$ cd ruby-build
$ ../ruby-3.1.1/configure --prefix=$PWD/local
$ make
```
I guess you first did "i...
mame (Yusuke Endoh)
11:47 AM Bug #18684 (Closed): Support for out of source build
Trying out of source build, it fails:
~~~
... snip ...
compiling ../ruby-3.1.1/vm_sync.c
compiling ../ruby-3.1.1/vm_trace.c
compiling ../ruby-3.1.1/yjit.c
assembling ../ruby-3.1.1/coroutine/amd64/Context.S
Assembler messages:
...
vo.x (Vit Ondruch)
03:49 PM Bug #18680: The documentation for File::Stat#ctime (for example) says: stat.ctime -> aTime
Yea. The #atime method has "-> time" ... whatever is decided, the four methods: #atime, #ctime, #mtime, and #birthtime should all have the same doc. pedz (Perry Smith)
07:55 AM Bug #18680: The documentation for File::Stat#ctime (for example) says: stat.ctime -> aTime
I guess that "aTime" means "a Time" or "an instance of Time". There is no strict rule for writing rdoc AFAIK, but I don't think it is very common to write a class constant name to represent a return instance type. I wonder if `-> time` i... mame (Yusuke Endoh)
01:52 PM Revision 389723d8 (git): * 2022-04-07 [ci skip]
git[bot]
01:38 PM Revision 697eed63 (git): [ruby/psych] Update autoconf files bundled with yaml-2.5
https://github.com/ruby/psych/commit/e28f17ac18 nobu (Nobuyoshi Nakada)
11:03 AM Bug #18681: crashes when built with AddressSanitizer (clang build)
mame (Yusuke Endoh) wrote in #note-2:
> I couldn't reproduce the issue. Can you build it with a simple configuration, i.e., without ASAN and without `-j45`?
Yes, no problem with clear build.
Fixed with params:
``` shell
export ASAN_OPTI...
a-shvedov (a-shvedov a-shvedov)
08:20 AM Bug #18681: crashes when built with AddressSanitizer (clang build)
I couldn't reproduce the issue. Can you build it with a simple configuration, i.e., without ASAN and without `-j45`? mame (Yusuke Endoh)
10:19 AM Revision 7b1ece9b (git): Get rid of type-punning pointer casts
nobu (Nobuyoshi Nakada)
10:07 AM Revision 9e58c3c5 (git): Get rid of type aliasing
nobu (Nobuyoshi Nakada)
09:01 AM Revision 23090cf6 (git): Suppress an unused function
nobu (Nobuyoshi Nakada)
07:47 AM Revision f2377e4c (git): Fix a typo [ci skip]
znz (Kazuhiro NISHIYAMA)
07:21 AM Bug #18679 (Rejected): Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
It seems clear that this isn't a Ruby bug. So I'm closing this issue. But please feel free to continue discussing the solution here if that helps. duerst (Martin Dürst)
07:10 AM Bug #18679: Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
@taf2, in that case it's indeed a `$LANG` problem. byroot (Jean Boussier)
06:03 AM Revision 21f006f5 (git): Retrieve previously configured macros also other than `extensions`
nobu (Nobuyoshi Nakada)
03:19 AM Revision 5af507f5 (git): Update `heap_pages_deferred_final` atomically
nobu (Nobuyoshi Nakada)
02:15 AM Bug #18487 (Closed): Kernel#binding behaves differently depending on implementation language of items on the stack
Applied in changeset commit:git|0b091fdac6ceb33b7379ceddc9a49a79d0e158b2.
----------
Raise RuntimeError if Kernel#binding is called from a non-Ruby frame
Check whether the current or previous frame is a Ruby frame in
call_trace_func an...
jeremyevans (Jeremy Evans)
02:14 AM Revision 0b091fda (git): Raise RuntimeError if Kernel#binding is called from a non-Ruby frame
Check whether the current or previous frame is a Ruby frame in
call_trace_func and rb_tracearg_binding before attempting to
create a binding for the frame.
Fixes [Bug #18487]
Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
jeremyevans (Jeremy Evans)
01:37 AM Revision bff12e1a (git): [DOC] Fix comment links
S_H_ (Shun Hiraoka)
12:47 AM Revision 5c1b76a3 (git): Install built gem extension binaries
nobu (Nobuyoshi Nakada)
12:47 AM Revision bb0a22a8 (git): Obey spec file locations to rubygems
nobu (Nobuyoshi Nakada)
12:47 AM Revision d7afaf21 (git): Move the target directory of bundled gems like as rubygems
nobu (Nobuyoshi Nakada)
12:47 AM Revision 17ce0b9b (git): Retrieve configured gems info
nobu (Nobuyoshi Nakada)
12:47 AM Revision db3d111c (git): Bundled gems are expanded under `.bundle/gems` now
nobu (Nobuyoshi Nakada)
12:46 AM Revision 3607657e (git): [DOC] Fix linux kernel commit links
S_H_ (Shun Hiraoka)

04/06/2022

10:39 PM Revision 21c8b9eb (git): Copyedit parallel test harness crash message
Mea culpa.
Co-authored-by: Kaíque Kandy Koga <kaiquekandykoga@gmail.com>
alanwu (Alan Wu)
10:22 PM Revision 16e6d7d1 (git): [rubygems/rubygems] Set `@tempdir` as early as possible
We have seen some errors during test `setup` before `@tempdir` is
actually set, in particular, when instantiating `Gem::MockUI` which in
turn requires `stringio`. In this case, the `teardown` method will also
produce an error because it ...
deivid (David Rodríguez)
10:11 PM Revision 399ef463 (git): Copyedit parallel test harness crash message
alanwu (Alan Wu)
08:47 PM Revision 86411f69 (git): * 2022-04-07 [ci skip]
git[bot]
08:47 PM Revision 717b20ee (git): [DOC] Enhanced RDoc for string slices (#5769)
Creates file doc/string/slices.rdoc that the string slicing methods can link to. burdettelamar (Burdette Lamar)
07:07 PM Bug #18679: Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
@byroot thank you! that was it on intel: Encoding.default_internal
=> #<Encoding:UTF-8>
On arm:
Encoding.default_internal
=> nil
taf2 (Todd Fisher)
11:54 AM Bug #18679: Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
My bet would be the locale is not set properly on the arm machine.
`locale` probably shows `C` or `POSIX` and many things don't work with that.
You probably need `export LANG=en_US.UTF-8` or so.
I think CRuby should warn in that cas...
Eregon (Benoit Daloze)
07:25 AM Bug #18679: Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
You might want to look at wether `Encoding.default_internal` and `Encoding.default_external` matches on your two platforms. byroot (Jean Boussier)
05:45 PM Feature #18683: Allow to create hashes with a specific capacity.
That's a good point.
I suppose it could be worked around with either:
- A positional argument: `Hash.new(nil, capacity).
- An alternative constructor (e.g. `Hash.new_with_capcity`).
- And instance setter `h = {}; h.capacity...
byroot (Jean Boussier)
04:47 PM Feature #18683: Allow to create hashes with a specific capacity.
This would break backwards compatibility:
```ruby
Hash.new(capacity: 1000)[nil]
# => {:capacity=>1000}
```
jeremyevans0 (Jeremy Evans)
10:55 AM Feature #18683 (Closed): Allow to create hashes with a specific capacity.
Various protocol parsers such as Redis `RESP3` or `msgpack`, have to create hashes, and they know the size in advance.
For efficiency, it would be preferable if they could directly allocate a Hash of the necessary size, so that large ha...
byroot (Jean Boussier)
02:57 PM Revision 1f3448f5 (git): Update bundled gems list at 8197ae35f90aa1c260b5782c08827d [ci skip]
git[bot]
02:57 PM Revision 8197ae35 (git): Bundle RBS 2.3.2 (#5762)
soutaro (Soutaro Matsumoto)
09:22 AM Bug #18682 (Closed): doc: raise also accepts instances
I think it is the case of "another object that returns an Exception object hen sent an exception message".
In other words, `raise RuntimeError.new("foo")` raises `RuntimeError.new("foo").exception`, which is `#<RuntimeError: foo>`.
`...
mame (Yusuke Endoh)
09:03 AM Bug #18682 (Closed): doc: raise also accepts instances
https://ruby-doc.org/core-3.1.1/Kernel.html#method-i-raise says
```
Otherwise, the first parameter should be an Exception class (or another object that returns an Exception object when sent an exception message).
```
Well, it can...
akim2 (Akim Demaille)
08:41 AM Bug #18681 (Closed): crashes when built with AddressSanitizer (clang build)
Have the error-message in log then build ruby interpreter:
``` shell
building .ext/include/x86_64-linux/rb_mjit_min_header-2.7.5.h
./miniruby -I./lib -I. -I.ext/common ./tool/transform_mjit_header.rb "/usr/bin/clang -fsanitize=addre...
a-shvedov (a-shvedov a-shvedov)
02:59 AM Revision 8da0b68a (git): Fix a typo [ci skip]
znz (Kazuhiro NISHIYAMA)

04/05/2022

11:55 PM Revision c59488a8 (git): [rubygems/rubygems] Use `ask_yes_no`
https://github.com/rubygems/rubygems/commit/1d38e167fa Ashley Ellis Pierce
11:54 PM Revision 37a19f7f (git): [rubygems/rubygems] Extract default_host method
https://github.com/rubygems/rubygems/commit/6e10e75574 Ashley Ellis Pierce
11:54 PM Revision b75b67f1 (git): [rubygems/rubygems] Use YAML
https://github.com/rubygems/rubygems/commit/6122e8cac5 Ashley Ellis Pierce
11:54 PM Revision bb3ecdba (git): [rubygems/rubygems] Accomodate gem hosts without profile/me endpoint
https://github.com/rubygems/rubygems/commit/31b6dcf5d3 Ashley Ellis Pierce
11:54 PM Revision 75083704 (git): [rubygems/rubygems] Update endpoint
https://github.com/rubygems/rubygems/commit/a5a7b3ec96 Ashley Ellis Pierce
11:54 PM Revision ec09b2db (git): [rubygems/rubygems] Remove whitespace
https://github.com/rubygems/rubygems/commit/08c2d88137 Ashley Ellis Pierce
11:54 PM Revision 925d73b3 (git): [rubygems/rubygems] Make changes <2.6 compatible
Multiple params to merge was not introduced until Ruby 2.6, so this
merges the two additional params together first and then merges that
with the request body
https://github.com/rubygems/rubygems/commit/870f7e9a1c
Ashley Ellis Pierce
11:54 PM Revision 8650811b (git): [rubygems/rubygems] Fix lint
https://github.com/rubygems/rubygems/commit/a68bfde18e Ashley Ellis Pierce
11:54 PM Revision 7bb6449f (git): [rubygems/rubygems] Make mfa the default
https://github.com/rubygems/rubygems/commit/0b636f6902 Ashley Ellis Pierce
11:54 PM Revision 4ae3b78c (git): [rubygems/rubygems] Correct mfa level name
https://github.com/rubygems/rubygems/commit/a002e351ae Ashley Ellis Pierce
11:54 PM Revision b3f1b3cc (git): [rubygems/rubygems] Enable mfa on specific keys during gem signin
https://github.com/rubygems/rubygems/commit/e787f7f655 Ashley Ellis Pierce
11:29 PM Bug #18487: Kernel#binding behaves differently depending on implementation language of items on the stack
The previous commit failed with VM assertion error when compiling with `-DRUBY_DEBUG=1 -DRGENGC_CHECK_MODE=2`. I've found the issue was due to TracePoint/set_trace_func creating bindings for ifuncs. I've submitted a pull request to fix... jeremyevans0 (Jeremy Evans)
10:57 PM Bug #18679: Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
First, if the error says Encoding::UndefinedConversionError, then I think it's not related to iconv, because iconv only gets used when you explicitly say so. Ruby has its own internal character conversion code.
Second, it's very clear...
duerst (Martin Dürst)
08:21 PM Bug #18679: Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
I found some additional insight... on Intel we can puts File.read("this-file-contains-utf8") # and no crash
On arm in some cases when we do
puts File.read("this-file-contains-uf8") # it crashes with an encoding error ...
Adding ...
taf2 (Todd Fisher)
08:02 PM Bug #18679 (Rejected): Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
We are facing an issue only when running ruby on arm from amazon linux. In some cases when we puts a string we'll receive the above error message. However when we run the same data through puts on Intel we do not receive this error. ... taf2 (Todd Fisher)
08:37 PM Revision 8ee4a82e (git): RubyVM.stat constant cache metrics (#5766)
Before the new constant cache behavior, caches were invalidated by a
single global variable. You could inspect the value of this variable
with RubyVM.stat(:global_constant_state). This was mostly useful to
verify the behavior of the VM o...
kddnewton (Kevin Newton)
08:08 PM Bug #18680 (Closed): The documentation for File::Stat#ctime (for example) says: stat.ctime -> aTime
I think it returns Time (not aTime). This is true for three of the four "time" methods.
I would not mind making a pull request if this would be helpful.
pedz (Perry Smith)
04:58 PM Revision 5571ca3a (git): * 2022-04-06 [ci skip]
git[bot]
04:57 PM Revision 2304cfa4 (git): Document MakeMakefile#append_cflags
This method is at least 7 years old and is widely used in the wild.
Since we need to support it, let's document it to make it discoverable.
Add docs and move it out of the `# :stopdoc:` zone.
alanwu (Alan Wu)
02:36 PM Bug #18673 (Closed): Anonymous block forwarding fails when combined with keyword arguments
Applied in changeset commit:git|3bb70a6924ddd83f90b508b5bbc4d5629b8a41c6.
----------
Fix using anonymous block in method accepting explicit keywords
Record block ID before vtable_pop, so the incorrect one doesn't
override it.
Fixes [B...
jeremyevans (Jeremy Evans)
02:35 PM Revision 3bb70a69 (git): Fix using anonymous block in method accepting explicit keywords
Record block ID before vtable_pop, so the incorrect one doesn't
override it.
Fixes [Bug #18673]
jeremyevans (Jeremy Evans)
01:35 PM Revision 97ce0309 (git): Load fake.rb at `BTESTRUBY`
So that `mkmf` checks work from `make run`, and also remove
duplicate `$(MINIRUBYOPT)` which is used in `$(MINIRUBY)`.
nobu (Nobuyoshi Nakada)
10:23 AM Revision d9c6f8d4 (git): Try to fix NoMethodError on slow environments
```
1) Failure:
TestParallel::TestParallel#test_hungup [/home/user/ruby/tool/test/testunit/test_parallel.rb:215]:
Expected /^Retrying hung up testcases\.+$/ to match "Run options: \n" +
" --seed=43403\n" +
" --ruby\n" +
" \"./miniru...
znz (Kazuhiro NISHIYAMA)
09:55 AM Bug #18625 (Closed): ruby2_keywords does not unmark the hash if the receiving method has a *rest parameter
Eregon (Benoit Daloze)
09:52 AM Bug #18625: ruby2_keywords does not unmark the hash if the receiving method has a *rest parameter
I merged https://github.com/ruby/ruby/pull/5684, which is Jeremy's PR + a needed update of rspec-mocks + [a NEWS entry](https://github.com/eregon/ruby/blob/3d0aac928f7592838deff2cb84b57f0678c348cc/NEWS.md).
This is the only way to reall...
Eregon (Benoit Daloze)
09:54 AM Revision 57300598 (git): Give some tips on how to find the missing ruby2_keywords
Eregon (Benoit Daloze)
09:42 AM Revision d3f659d3 (git): Add NEWS entry for Bug #18625 to help adding ruby2_keywords in the missing places
Eregon (Benoit Daloze)
09:42 AM Revision 4f25207e (git): Use latest RSpec to get rspec-mocks ruby2_keywords fix
Eregon (Benoit Daloze)
09:42 AM Revision 752c3dad (git): Unflag a splatted flagged hash if the method doesn't use ruby2_keywords
For a method such as:
def foo(*callee_args) end
If this method is called with a flagged hash (created by a method
flagged with ruby2_keywords), this previously passed the hash
through without modification. With this change, it acts ...
jeremyevans (Jeremy Evans)
05:31 AM Revision 5e7ebc7e (git): Ignore yaml source
hsbt (Hiroshi SHIBATA)
05:30 AM Revision 839577d8 (git): Removed mswin patch for zlib-1.2.11
hsbt (Hiroshi SHIBATA)
05:08 AM Revision 1ac839dc (git): Apply timescale configuration for tests of Regexp.timeout
mame (Yusuke Endoh)
01:24 AM Bug #18678 (Closed): Crash on Mac - vm_call0_cfunc_with_frame
Somehow referencing a variable that didn't exist caused a crash. Happened once, I haven't been able to replicate.
```
dberger:~/Programming/Ruby >irb
irb(main):001:0> a = %w[one two three]
=> ["one", "two", "three"]
irb(main):002:...
djberg96 (Daniel Berger)

04/04/2022

11:56 PM Revision 18044f4f (git): [ruby/psych] Improve libyaml source downloading error messages
People trying to build CRuby by following the instructions in its
[README] have been running into [errors] due to missing `libyaml`
on their system. Let's try to present a better error message when
it happens.
[README]: https://github.c...
alanwu (Alan Wu)
11:05 PM Bug #18673: Anonymous block forwarding fails when combined with keyword arguments
I submitted a pull request to fix this issue: https://github.com/ruby/ruby/pull/5761 jeremyevans0 (Jeremy Evans)
09:46 PM Revision a19b2d59 (git): ruby_gc_set_params: update malloc_limit when env is set
During VM startup, rb_objspace_alloc sets malloc_limit
(objspace->malloc_params.limit) before ruby_gc_set_params is called, thus
nullifying the effect of RUBY_GC_MALLOC_LIMIT before the initial GC run.
The call sequence is as follows:
...
Eric Wong
07:18 PM Revision 4a4485ad (git): Enhanced RDoc for String#index (#5759)
burdettelamar (Burdette Lamar)
06:41 PM Revision 48520cc1 (git): * 2022-04-05 [ci skip]
git[bot]
06:41 PM Revision 42000664 (git): Bring back RubyVM.stat(:global_constant_state)
This was removed as part of [Feature #18589]. But some applications were relying on this behavior. So bringing this back to make it better for backward compatibility going forward. kddnewton (Kevin Newton)
01:27 PM Revision ea9c09a9 (git): Disable mmap on WASM
WASM does not have proper support for mmap. peterzhu2118 (Peter Zhu)
01:27 PM Revision c482ee40 (git): Make heap page sizes 64KiB by default
Commit dde164e968e382d50b07ad4559468885cbff33ef decoupled incremental
marking from page sizes. This commit changes Ruby heap page sizes to
64KiB. Doing so will have several benefits:
1. We can use compaction on systems with 64KiB system...
peterzhu2118 (Peter Zhu)
09:55 AM Bug #18373: Bundled gem (RBS, debug) extensions are not properly built
vo.x (Vit Ondruch) wrote in #note-27:
> vo.x (Vit Ondruch) wrote in #note-25:
> ...
I have updated the PR ^^ in a way that it seems to completely address my original issue and I am going to use it in Fedora package.
vo.x (Vit Ondruch)
09:54 AM Revision f8455a4f (git): Make typeprof support RBS 2.3.0
Since RBS 2.3.0, nil? returns true or false instead of bool mame (Yusuke Endoh)
09:27 AM Bug #18677 (Assigned): BigDecimal#power (**) returns FloatDomainError when passing an infinite parameter
Example:
```ruby
> BigDecimal(10) ** BigDecimal("Infinity")
FloatDomainError: Computation results in 'Infinity'
```
Maybe:
```ruby
require "bigdecimal/util"
class BigDecimal < Numeric
def **(other)
if other.infini...
dorianmariefr (Dorian Marié)
07:06 AM Revision 57377e5d (git): [ruby/psych] Propagate `CC` to libyaml
It is needed for cross-compiling to set properly. Just
`--target`/`--host`/`--build` seems insufficient on some
platforms.
https://github.com/ruby/psych/commit/2d00c0c203
nobu (Nobuyoshi Nakada)
06:05 AM Revision de427c3c (git): [ruby/optparse] Define `inspect` and `pretty_inspect`
https://github.com/ruby/optparse/commit/a3f0ec21b1 nobu (Nobuyoshi Nakada)
05:14 AM Revision 4db75b6f (git): [rubygems/rubygems] bump actions/checkout to 3 in bundler gem template
Dependabot bumped the repo's configuration in 0c996fa but it did not
bump the version in the template for `bundler gem`
https://github.com/rubygems/rubygems/commit/e14980e169
Hartley McGuire
02:08 AM Bug #18676: Misleading Documentation/Bug: Incorrect File.position on a file opened with "a" mode
Makes sense. apatniv (Vivek Ak)
01:13 AM Bug #18676: Misleading Documentation/Bug: Incorrect File.position on a file opened with "a" mode
apatniv (Vivek Ak) wrote in #note-2:
> Hi Jeremy. Thanks you for your response. Should we update the documentation to indicate the same so that it help anyone who encounters the same issue?
I don't think doing so is a good idea. Thi...
jeremyevans0 (Jeremy Evans)
01:00 AM Bug #18676: Misleading Documentation/Bug: Incorrect File.position on a file opened with "a" mode
Hi Jeremy. Thanks you for your response. Should we update the documentation to indicate the same so that it help anyone who encounters the same issue?
apatniv (Vivek Ak)
12:38 AM Bug #18676 (Rejected): Misleading Documentation/Bug: Incorrect File.position on a file opened with "a" mode
apatniv (Vivek Ak) wrote:
> Examining the offset in /proc filesytem
> ...
If the kernel is stating the file position is `0`, it doesn't seem like a bug that Ruby is also stating the position is `0`. For files opened in append mode, the...
jeremyevans0 (Jeremy Evans)
02:02 AM Bug #18455: `IO#close` has poor performance and difficult to understand semantics.
ioquatix (Samuel Williams) wrote in #note-4:
> @shyouhei what was the point of https://github.com/ioquatix/ruby/commit/b121cfde5fbc8cd20684a5fd94047f40323a8353 - Performance? Consistency? Something else?
Hello, `rb_io_fptr_finalize_i...
shyouhei (Shyouhei Urabe)

04/03/2022

08:56 PM Bug #18676 (Rejected): Misleading Documentation/Bug: Incorrect File.position on a file opened with "a" mode
Documentation says that whenever a file is opened in "a" mode, the stream is positioned at the end of stream. However, #tell method returns 0 instead of the size of the file. (https://ruby-doc.org/core-3.1.1/IO.html#class-IO-label-Positi... apatniv (Vivek Ak)
03:09 PM Revision fb5aa31e (git): * 2022-04-04 [ci skip]
git[bot]
03:09 PM Revision 0b0ae583 (git): [DOC] Enhanced RDoc for String (#5753)
Treats:
#length
#bytesize
burdettelamar (Burdette Lamar)
04:38 AM Revision f801386f (git): [DOC] Describe append_{c,cpp,ld}flags
nobu (Nobuyoshi Nakada)
 

Also available in: Atom