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 0CCAB19C0024 for ; Tue, 1 Dec 2015 16:30:37 +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 99E96B5D875 for ; Tue, 1 Dec 2015 17:01:57 +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 1678718CC7B2 for ; Tue, 1 Dec 2015 17:01:58 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 343E11204FD; Tue, 1 Dec 2015 17:01:49 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o2.heroku.sendgrid.net (o2.heroku.sendgrid.net [67.228.50.55]) by neon.ruby-lang.org (Postfix) with ESMTPS id 8328C12049C for ; Tue, 1 Dec 2015 17:01:36 +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=5UE/AJ4TnQJn/marSc/ZDLvUIE0=; b=Uc1vRdY+W8FYSuMgw0 NJeydfeUzU1apz5L0d9HAQPX74DuOVG2j6txLbCOsrhMkJK/z6RFoHH01GxiVuQm D+lDS1iMqfyTAMKHvQ1jnT88A+2XEGdyXvUJYdHSbFCYf0V8/nGSmg8cKvtvkBTW 11BqFkpNmsxKE7w059BIOwjbc= Received: by filter0505p1mdw1.sendgrid.net with SMTP id filter0505p1mdw1.6781.565D53DA3 2015-12-01 08:01:30.018364159 +0000 UTC Received: from herokuapp.com (ec2-54-82-47-117.compute-1.amazonaws.com [54.82.47.117]) by ismtpd0005p1iad1.sendgrid.net (SG) with ESMTP id ChHdNNPkSiiWxBMgG1R3ig for ; Tue, 01 Dec 2015 08:01:30.068 +0000 (UTC) Date: Tue, 01 Dec 2015 08:01:30 +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: 46463 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11444 X-Redmine-Issue-Author: cantino 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS4DVB4I3J4jejmtj0+sEIlXfsiyQKMj/xHrIh Aa7RbuiQFbLM61EILzrkfiq1nzv4Ruu1BeZaCNo4Sli/BvcCg71BT4FxVJWQNMJ5ag6LeQJyofPj0V BFT0rIPLLcIQzSQ= X-ML-Name: ruby-core X-Mail-Count: 71776 Subject: [ruby-core:71776] [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 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 r52831 merged revision(s) 51583,51594,51638. ---------------------------------------- Bug #11444: STDIN.each_codepoint hangs indefinitely on certain codepoints https://bugs.ruby-lang.org/issues/11444#change-55185 * Author: Andrew Cantino * Status: Closed * Priority: Normal * Assignee: * ruby -v: ruby 2.3.0dev (2015-08-13 trunk 51569) [x86_64-linux] * Backport: 2.0.0: REQUIRED, 2.1: DONE, 2.2: DONE ---------------------------------------- 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/