From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 8824E17CC364 for ; Sat, 3 Nov 2012 20:39:35 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 7C90CEA6C25 for ; Sat, 3 Nov 2012 20:52:11 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 90FB897A81A for ; Sat, 3 Nov 2012 20:52:11 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A02-x6WbALnh for ; Sat, 3 Nov 2012 20:52:11 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 700FB97A826 for ; Sat, 3 Nov 2012 20:52:11 +0900 (JST) Received: from carbon.ruby-lang.org (carbon.ruby-lang.org [221.186.184.68]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id CDA80952420 for ; Sat, 3 Nov 2012 20:52:08 +0900 (JST) Received: from beryllium.ruby-lang.org (beryllium.ruby-lang.org [127.0.0.1]) by carbon.ruby-lang.org (Postfix) with ESMTP id 2BB4E3C21E228; Sat, 3 Nov 2012 20:52:07 +0900 (JST) Received: from fluorine.ruby-lang.org (www.rubyist.net [210.251.121.216]) by carbon.ruby-lang.org (Postfix) with ESMTP id 980F43C21E7CD for ; Sat, 3 Nov 2012 20:52:06 +0900 (JST) Received: from ruby-lang.org (localhost [127.0.0.1]) by fluorine.ruby-lang.org (Postfix) with ESMTP id 780CD3E005 for ; Sat, 3 Nov 2012 20:52:06 +0900 (JST) Delivered-To: ruby-core@ruby-lang.org Date: Sat, 3 Nov 2012 20:52:06 +0900 Posted: Sat, 3 Nov 2012 20:52:05 +0900 From: "mame (Yusuke Endoh)" Reply-To: ruby-core@ruby-lang.org Subject: [ruby-core:48800] [ruby-trunk - Bug #6864] bad value for range when using infinity with date or time To: ruby-core@ruby-lang.org Message-Id: References: X-ML-Name: ruby-core X-Mail-Count: 48800 X-MLServer: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post) X-ML-Info: If you have a question, send e-mail with the body "help" (without quotes) to the address ruby-core-ctl@ruby-lang.org; help= X-Mailer: Redmine X-Redmine-Issue-Author: slbug X-Redmine-Issue-Assignee: matz X-Auto-Response-Suppress: OOF X-Redmine-Issue-Id: 6864 X-Redmine-Mailinglistintegration-Message-Ids: 21171 X-Redmine-Project: ruby-trunk Auto-Submitted: auto-generated X-Redmine-Site: Ruby Issue Tracking System X-Redmine-Host: bugs.ruby-lang.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Precedence: bulk List-Id: ruby-core.ruby-lang.org List-Software: fml [fml 4.0.3 release (20011202/4.0.3)] List-Post: List-Owner: List-Help: List-Unsubscribe: Issue #6864 has been updated by mame (Yusuke Endoh). Assignee changed from tadf (tadayoshi funaba) to matz (Yukihiro Matsumoto) Target version changed from 2.0.0 to next minor I see, thank you. Then, addressing this issue requires changing Range's spec, which is too heavy from this time. I postpone this to next minor. -- Yusuke Endoh ---------------------------------------- Bug #6864: bad value for range when using infinity with date or time https://bugs.ruby-lang.org/issues/6864#change-32292 Author: slbug (Alex Grebennik) Status: Assigned Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: Target version: next minor ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] Steps to reproduce: require 'date' Range.new(Date.today, 1.0/0.0) # works Range.new(-1.0/0.0, Date.today) # fails Range.new(Time.now, 1.0/0.0) # fails Range.new(-1.0/0.0, Time.now) # fails Tested on 1.9.3 and trunk. I think this is a bug, because there is no logic error. just ranges without one bound. -- http://bugs.ruby-lang.org/