General

Profile

SouravGoswami (Sourav Goswami)

  • Login: SouravGoswami
  • Registered on: 07/14/2019
  • Last sign in: 10/18/2021

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 4 4

Activity

09/22/2021

09:30 PM Ruby Bug #18187: Float#clamp() returns ArgumentError (comparison of Float with 1 failed)
Hi, sorry, yes it's `comparison of Float with 0 failed`, probably there was some typo.
I agree it should raise or return. But it shouldn't raise ArgumentError. Anyway, it probably has the lowest priority because it doesn't cause any iss...
SouravGoswami (Sourav Goswami)
05:23 PM Ruby Bug #18187 (Rejected): Float#clamp() returns ArgumentError (comparison of Float with 1 failed)
When I have a Float::NAN as a number, I expect all the method to work properly.
For example, `Float::NAN - 1` gives NAN. But Float::NAN.to_i raises FloatDomainError.
But in case of clamp(), Float::NAN.clamp(0, 100) returns `Argumen...
SouravGoswami (Sourav Goswami)

12/24/2020

07:44 AM Ruby Bug #17467 (Closed): What makes strip() and lstrip() not stripping \u0000 from beginning of the string?
Both strip(), and rstrip() will delete \u0000 from the end of a string. But I have a string that has "\u0000hello\u0000".
Output from strip, lstrip and rstrip:
"\u0000hello\u0000".strip # => "\u0000hello"
"\u0000hello\u0000".lstri...
SouravGoswami (Sourav Goswami)

08/31/2019

09:08 PM Ruby Bug #16132: Ruby 2.7 IRB crashes after pressing Insert and Delete
IRB also crashes when you write: a = 5 or any line of code, and press the Delete key.
The error goes like this:
`irb(main):001:0> puts ?? Traceback (most recent call last):
35: from /home/sourav/.rvm/rubies/ruby-2.7.0-preview1/bin/...
SouravGoswami (Sourav Goswami)
09:01 PM Ruby Bug #16132 (Closed): Ruby 2.7 IRB crashes after pressing Insert and Delete
Hello I am using the rvm 2.7 preview version of Ruby.
[I also tried the git version yesterday, which has the same problem mentioned below].
I am unable to use keys like End, Home, Insert etc.
The IRB crashes (with TypeError) when yo...
SouravGoswami (Sourav Goswami)

07/14/2019

08:49 PM Ruby Bug #16002 (Closed): File.writable?('/tmp/file') returns true even if it's not writable on Linux 4.19+
Well, on Linux Kernel 4.19+ the fs.protected_regular and fs.protected_fifos sysctls were introduced in order to make some data spoofing attacks harder.
https://github.com/systemd/systemd/blob/03b6fa0c5b51b0d39334ff6ba183a3391443bcf6/N...
SouravGoswami (Sourav Goswami)

Also available in: Atom