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 8F1A019C0535 for ; Mon, 30 Nov 2015 20:49:10 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 8FA07B5D8EC for ; Mon, 30 Nov 2015 21:20:28 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 4F08118CC7B2 for ; Mon, 30 Nov 2015 21:20:29 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 622BF120496; Mon, 30 Nov 2015 21:20:28 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id 15F45120470 for ; Mon, 30 Nov 2015 21:20:22 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=T9NA6ZzyyMSVkL0O1RyIdHlhISU=; b=bn2zzAiVi/Kn08psk7 1waOtn57eLomohOEnmyIiltIW8uvLaBqmh+IFP1JBUPdnbIJe0mIhlIzA41LDXBN /5fa3pqLMvzaRn1jvdLtg2ih3Cf3E7R8KpxM133QdPQcEW8pOubjx0LyIEMHCb/i Irt/ubMNjCqqFD2FJc7ck24aw= Received: by filter0471p1mdw1.sendgrid.net with SMTP id filter0471p1mdw1.18954.565C3EFA36 2015-11-30 12:20:10.503105603 +0000 UTC Received: from herokuapp.com (ec2-54-158-179-27.compute-1.amazonaws.com [54.158.179.27]) by ismtpd0003p1iad1.sendgrid.net (SG) with ESMTP id -yXT80U9QnqZGP7htUXrYA for ; Mon, 30 Nov 2015 12:20:10.352 +0000 (UTC) Date: Mon, 30 Nov 2015 12:20:10 +0000 From: usa@garbagecollect.jp To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 46438 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11738 X-Redmine-Issue-Author: shugo X-Redmine-Sender: usa X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS5AgoHVY3N9nEIabXoTRd0g1MJBz817HkTyWr teJmlLmEKmeUTwfRYKaEL5GP76KCIy1wmu9/bgNWIX/ZhWGMScFnJ19m9Nlik1Cl55wP/b2687su43 sqGzAbq2KXxQG2bzawGyqQWL0pY5mPA77ffx X-ML-Name: ruby-core X-Mail-Count: 71752 Subject: [ruby-core:71752] [Ruby trunk - Bug #11738] ARGF.readpartial raises a wrong exception X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11738 has been updated by Usaku NAKAMURA. Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: DONE to 2.0.0: REQUIRED, 2.1: DONE, 2.2: DONE ruby_2_1 r52800 merged revision(s) 52745. ---------------------------------------- Bug #11738: ARGF.readpartial raises a wrong exception https://bugs.ruby-lang.org/issues/11738#change-55163 * Author: Shugo Maeda * Status: Closed * Priority: Normal * Assignee: * ruby -v: ruby 2.3.0dev (2015-11-09 trunk 52500) [x86_64-linux] * Backport: 2.0.0: REQUIRED, 2.1: DONE, 2.2: DONE ---------------------------------------- ARGF.readpartial raises a RuntimeError when EOF is detected more than twice: ``` lexington:ruby$ cat t.rb p ARGF.readpartial(16) rescue nil p ARGF.readpartial(16) lexington:ruby$ ruby t.rb /dev/null t.rb:2:in `readpartial': can't modify frozen NilClass (RuntimeError) from t.rb:2:in `
' lexington:ruby$ ``` An EOFError is expected. -- https://bugs.ruby-lang.org/