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 8432B1980114 for ; Sat, 15 Aug 2015 09:38:15 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (smtp.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id E3132B5D8B0 for ; Sat, 15 Aug 2015 10:13:25 +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 0F19F97A826 for ; Sat, 15 Aug 2015 10:13:27 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Authentication-Results: funfun.nagaokaut.ac.jp (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=sendgrid.me 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 JmcWZl_oH6M7 for ; Sat, 15 Aug 2015 10:13:26 +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 C7D6597A820 for ; Sat, 15 Aug 2015 10:13:26 +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 978D795243E for ; Sat, 15 Aug 2015 10:13:25 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 5FC9E120440; Sat, 15 Aug 2015 10:13:24 +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 4465C120410 for ; Sat, 15 Aug 2015 10:13:19 +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=WYi3EEXjd+UGffkffFNPtvO7SzI=; b=kHehIP4+sbzw9jaxJa iIN3eMtV+4COYOPq70VdByuqB49C+mj39ifggWTGW0+pWMWPrf2VC4rJ3Zp46gBr WICRCFqCIhPiT1dypRT2GdPbl9n2+Fz9dkRcszQrSRF6QdplE35uUQPpMlZZMHKu fc0iR9c7asXLQOwA90mq+dKC8= Received: by filter0823p1mdw1.sendgrid.net with SMTP id filter0823p1mdw1.26580.55CE922B2 2015-08-15 01:13:15.06771357 +0000 UTC Received: from herokuapp.com (ec2-54-158-252-107.compute-1.amazonaws.com [54.158.252.107]) by ismtpd0006p1iad1.sendgrid.net (SG) with ESMTP id JAjgdoZ1Scilo72nINRZgg for ; Sat, 15 Aug 2015 01:13:15 +0000 (UTC) Date: Sat, 15 Aug 2015 01:13:15 +0000 From: nobu@ruby-lang.org 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: 44998 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11444 X-Redmine-Issue-Author: cantino X-Redmine-Sender: nobu 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS7BWin9tvrWy3PCsqzKysz6Fjv/3keSgVFuif PvAx9a/wrRUnsr0z55UJpDHEWu9vPUN6ATNFS9SgSs9b2KDo2MYPOGg2AeFMyxKJts1gxx+WgYm676 ydTB0gURLS4pM6y17uLRcAa454KTas4vQXnR X-ML-Name: ruby-core X-Mail-Count: 70396 Subject: [ruby-core:70396] [Ruby trunk - Bug #11444] STDIN.each_codepoint hangs indefinitely on certain codepoints 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 #11444 has been updated by Nobuyoshi Nakada. Description updated Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED ---------------------------------------- Bug #11444: STDIN.each_codepoint hangs indefinitely on certain codepoints https://bugs.ruby-lang.org/issues/11444#change-53797 * Author: Andrew Cantino * Status: Open * Priority: Normal * Assignee: * ruby -v: ruby 2.3.0dev (2015-08-13 trunk 51569) [x86_64-linux] * Backport: 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED ---------------------------------------- Piping certain Unicode data into Ruby and calling `each_codepoint` on `STDIN` results in a hang. Control-c does not exit, but control-z will. I've tested this in 2.2.0, 2.2.2, and trunk. Please see https://gist.github.com/cantino/48f977bee6a39e33f80f for reproduction. There is an example file with various Unicode Emoji characters in it (borrowed from http://apps.timwhitlock.info/emoji/tables/unicode). I'd like to help fix this if anyone can point me in the right direction. I fiddled with the file until I found a state where it works if one character is removed from the front of the file, so hopefully that's useful information. -- https://bugs.ruby-lang.org/