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 417A617CA1E3 for ; Tue, 14 Aug 2012 04:25:52 +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 02981EA6C2C for ; Tue, 14 Aug 2012 04:24:17 +0900 (JST) Received: from localhost (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 0577C8FC1B for ; Tue, 14 Aug 2012 04:24:17 +0900 (JST) X-Virus-Scanned: amavisd-new at funfun.nagaokaut.ac.jp Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by localhost (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zhz1LKrgZU-L for ; Tue, 14 Aug 2012 04:24:16 +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 D97188FC19 for ; Tue, 14 Aug 2012 04:24:16 +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 5C0B895241A for ; Tue, 14 Aug 2012 04:24:16 +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 A209A3C224BB4; Tue, 14 Aug 2012 04:24:13 +0900 (JST) Received: from fluorine.ruby-lang.org (www.rubyist.net [210.251.121.216]) by carbon.ruby-lang.org (Postfix) with ESMTP id C80B53C224B83 for ; Tue, 14 Aug 2012 04:24:12 +0900 (JST) Received: from ruby-lang.org (localhost [127.0.0.1]) by fluorine.ruby-lang.org (Postfix) with ESMTP id 760183ED5A for ; Tue, 14 Aug 2012 04:24:12 +0900 (JST) Delivered-To: ruby-core@ruby-lang.org Date: Tue, 14 Aug 2012 04:24:13 +0900 Posted: Tue, 14 Aug 2012 04:24:11 +0900 From: "slbug (Alex Grebennik)" Reply-To: ruby-core@ruby-lang.org Subject: [ruby-core:47160] [ruby-trunk - Bug #6864][Open] bad value for range when using infinity with date or time To: ruby-core@ruby-lang.org Message-Id: X-ML-Name: ruby-core X-Mail-Count: 47160 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-Auto-Response-Suppress: OOF X-Redmine-Issue-Id: 6864 X-Redmine-Mailinglistintegration-Message-Ids: 17547 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 reported by slbug (Alex Grebennik). ---------------------------------------- Bug #6864: bad value for range when using infinity with date or time https://bugs.ruby-lang.org/issues/6864 Author: slbug (Alex Grebennik) Status: Open Priority: Normal Assignee: Category: Target version: 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/