cremno (cremno phobia)
- Login: cremno
- Registered on: 05/03/2014
- Last sign in: 06/17/2019
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 12 | 12 |
Activity
02/22/2021
-
03:19 AM Ruby Revision a7dda449 (git): [ruby/reline] fix Reline::Windows.getconsolemode buffer
- use double quotes to properly convert the \000 escape sequence.
https://github.com/ruby/reline/commit/236dfe5683
11/30/2018
-
02:03 PM Ruby Misc #15347: Require C99
- Requiring a more modern version of MSVC should be a given anyway. Currently CRuby still tries to support 6.0 (`_MSC_VER=1200`) which was originally released in 1998 and has seen its last update in 2004. Additional code like in `numeric.c...
06/29/2018
-
05:30 PM Ruby Bug #14863: Array#join with empty array returns empty string always in US-ASCII encoding
- I also believe the current behavior makes sense. It won't cause the `invalid byte sequence in UTF-8` issue. The US-ASCII character set is THE subset (see BINARY which is actually called ASCII-8BIT). Sure the characters are sometimes enco...
12/25/2017
-
09:38 PM Ruby Bug #14233 (Rejected): syntax error caused by paren-less method call with kwargs and block
- Example:
~~~ ruby
3.step by: 3, to: 9 {|i| p i}
~~~
Expected result (before 2.5.0):
~~~
3
6
9
~~~
Actual result (2.5.0):
~~~
a.rb:1: syntax error, unexpected '{', expecting end-of-input
3.step by: 3, to: 9 {|i| p i...
05/12/2016
-
09:21 PM Ruby Bug #12371: Windows Nano Server WIN32OLE compatibility
- In my tests `OleInitialize(NULL)` succeeded on Nano Server TP5 and reverse forwarders installed. Then it already is basically equivalent to `CoInitializeEx(NULL, COINIT_MULTITHREADED)` (everything else it does is printing two debugging m...
05/05/2016
-
02:46 PM Ruby Feature #12350: Introduce Array#find! that raises an error if element not found
- You can pass a callable object to `Enumerable#find`:
~~~ruby
def find_price!(size)
prices.find(->{ fail "Price for #{size} not found" }){ |p| p.key == size }
end
~~~
05/02/2016
-
02:21 PM Ruby Bug #12340: Windows: File.truncate has two string encoding issues
- Oops! The tests you've added are much more comprehensive than mine anyway. Thank you for the quick fix.
-
12:47 PM Ruby Bug #12340 (Closed): Windows: File.truncate has two string encoding issues
- `File.truncate` calls `rb_str_encode_ospath()` which returns a UTF-8 encoded Ruby string.
Then it passes a pointer to the underlying C string to `truncate()` aka `rb_w32_truncate()`.
At last the UTF-8 string is passed to `CreateFile()`...
04/13/2016
-
07:17 PM Ruby Bug #12279 (Closed): cont.c: wrong _MSC_VER check
- 2.3.0 and trunk are affected. I wonder why compiling with Visual C++ 6.0 is still supported.
~~~diff
diff --git a/cont.c b/cont.c
index 8ebd78f..729a025 100644
--- a/cont.c
+++ b/cont.c
@@ -657,7 +657,7 @@ fiber_initialize_machin...
04/05/2016
-
08:46 PM Ruby Bug #12249: Math.gamma(-0.0) should return -Infinity
- Regarding `Math.lgamma(-0.0)` (r54494,r54495):
It's actually caused by the `lgamma_r()` fallback implementation. A non-invasive fix (I don't think adding `if(x==0)` would be worthwhile):
~~~diff
diff --git a/missing/lgamma_r.c b/m...