[#67346] Future of test suites for Ruby — Charles Oliver Nutter <headius@...>
I'll try to be brief so we can discuss all this. tl;dr: RubySpec is
19 messages
2015/01/05
[#67353] Re: Future of test suites for Ruby
— Tanaka Akira <akr@...>
2015/01/05
2015-01-06 7:18 GMT+09:00 Charles Oliver Nutter <headius@headius.com>:
[#67444] [ruby-trunk - Feature #10718] [Open] IO#close should not raise IOError on closed IO objects. — akr@...
Issue #10718 has been reported by Akira Tanaka.
3 messages
2015/01/09
[#67689] Keyword Arguments — Anthony Crumley <anthony.crumley@...>
Please forgive my ignorance as I am new to MRI development and am still
5 messages
2015/01/20
[#67733] [ruby-trunk - Bug #10761] Marshal.dump 100% slower in 2.2.0 vs 2.1.5 — normalperson@...
Issue #10761 has been updated by Eric Wong.
4 messages
2015/01/21
[#67736] Re: [ruby-trunk - Bug #10761] Marshal.dump 100% slower in 2.2.0 vs 2.1.5
— Eric Wong <normalperson@...>
2015/01/22
normalperson@yhbt.net wrote:
[#67772] Preventing Redundant Email Messages — Jeremy Evans <code@...>
For a long time, I've wondered why I sometimes receive redundant email
5 messages
2015/01/23
[ruby-core:67334] [ruby-trunk - Bug #10696] [Rejected] Digest implementation on Windows faulty
From:
nobu@...
Date:
2015-01-04 22:19:40 UTC
List:
ruby-core #67334
Issue #10696 has been updated by Nobuyoshi Nakada.
Status changed from Open to Rejected
----------------------------------------
Bug #10696: Digest implementation on Windows faulty
https://bugs.ruby-lang.org/issues/10696#change-50791
* Author: Thomas Bruderer
* Status: Rejected
* Priority: Normal
* Assignee: cruby-windows
* Category: platform/windows
* Target version:
* ruby -v: ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
The example I made with SHA1, but the same happens for other digests, so it seems to affect the generic implementation of the interface and not the specific hash implementations.
> Digest::SHA1.hexdigest(File.read('test.file'))
> "069171eeda5f9c72cb28cb8d3fb7bbfad57ef044"
>
> Digest::SHA1.file('test.file').hexdigest
> "8b797e38c097eb8eab5c9d061ba241b03c6e739e"
The correct hash (independently checked) is the one in the file method. The Problem seems to be coming from the Read of this binary "string".
To me it seems like it could be a Problem with the character Encoding in a string. I first thought it was stopping at the null character but a test with valid ASCII with a NULL Character in the middle did actually work correctly. I attached the test-file to reproduce this beahvior. It is a very simple File with a few non-printable Characters including NULL.
This is a very specific Problem only happening on Windows. I report it for the last Version I tested, but I also tested this on 1.9 build with the same result. The same test runs fine on Linux.
---Files--------------------------------
test.file (32 Bytes)
--
https://bugs.ruby-lang.org/