From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS24940 94.130.0.0/16 X-Spam-Status: No, score=-3.0 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_HI, SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 30CF81F601 for ; Fri, 9 Dec 2022 16:38:41 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.b="IyoKQKYb"; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id ADD227E67B; Fri, 9 Dec 2022 16:38:27 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=IyoKQKYb; dkim-atps=neutral Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 4C5447E551 for ; Fri, 9 Dec 2022 16:38:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=tuxjEJ65VEdbXskV+DxPjT/8I7AdeynGO6ZWjBj5bVU=; b=IyoKQKYblM3xsc6EYNgXpw3lpOFFTl/vH+g0hT22+kmp/n67mq/dRZuR40sPhIDV2GFa qMLLA9cQ54h/WpwHTGT1qMLQJm5omKttGu7WQNsuKfLE1jEQfaKXZY+z1y/QYz9KHaHVsj 5IL+a2vB5C9tmhTW6OvP4VReAfnNgea6XHxaa6XQj0V485houUU6wLXQdrx1K8cPY8DtPt CtRz1TsWx4/wcndJvZY8mCmP256GKcSZKVGED4ryvJnSbSRr1g4dM92cDnJ6Z9IYyxGN9k IpnSVDgRxQ0wg+JLQt0gsYBpBiQAGAvMARcGWNV9EE3qOiVcNkOTd5fgKpizHiXA== Received: by filterdrecv-8569859b9-kd4gr with SMTP id filterdrecv-8569859b9-kd4gr-1-6393647D-5 2022-12-09 16:38:21.089427913 +0000 UTC m=+1877490.556120697 Received: from herokuapp.com (unknown) by geopod-ismtpd-2-3 (SG) with ESMTP id pDTfJs9MQO2tqIle-i61CQ for ; Fri, 09 Dec 2022 16:38:21.037 +0000 (UTC) Date: Fri, 09 Dec 2022 16:38:21 +0000 (UTC) From: "YO4 (Yoshinao Muramatsu)" Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Feature X-Redmine-Issue-Id: 19193 X-Redmine-Issue-Author: YO4 X-Redmine-Sender: YO4 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-Redmine-MailingListIntegration-Message-Ids: 87604 X-SG-EID: =?us-ascii?Q?uH=2F0OBqzZKytzBPqds8IOEX0+RS7rPpC6GVHpaMZqlQBSjc5k3j3CM1xKsZw6i?= =?us-ascii?Q?u5CvhBY1ai5WXqQbu8FL=2F5fDlaunH8RmMIAuv7P?= =?us-ascii?Q?ZQ5MpAGkzQktxAOPfGrh0jBLaXJGW+OEKJeg9ic?= =?us-ascii?Q?nHnJ9vKjuZGFwrJJRq6qJUCzb3aKyZCznYwBVoX?= =?us-ascii?Q?O7jn95j7fPlsvOtD7bEElahbhJ+nQwTs+FLAdLG?= =?us-ascii?Q?CNcjfdpN4c33aedWRBEexLgPvuH8wE5C9S=2FfFrS?= =?us-ascii?Q?hrutBuE7=2FmAS62PfHbmyA=3D=3D?= To: ruby-dev@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: 6AGM7KWBCJ2HXPCUDDPOUT22UT2QE3OG X-Message-ID-Hash: 6AGM7KWBCJ2HXPCUDDPOUT22UT2QE3OG X-MailFrom: bounces+313651-12dc-ruby-dev=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list Reply-To: "Ruby developers (Japanese)" Subject: =?utf-8?q?=5Bruby-dev=3A52013=5D_?= [Ruby master Feature#19193] drop DOS TEXT mode support List-Id: "Ruby developers (Japanese)" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Issue #19193 has been reported by YO4 (Yoshinao Muramatsu). ---------------------------------------- Feature #19193: drop DOS TEXT mode support https://bugs.ruby-lang.org/issues/19193 * Author: YO4 (Yoshinao Muramatsu) * Status: Open * Priority: Normal ---------------------------------------- On Windows platform, ```File.open(path, "r")``` returns an object different from "rt" and "rb". I call that DOS TEXT mode here. DOS TEXT mode does * crlf conversion * 0x1a treated EOF charactor on read and others (see Bug #19192). But DOS TEXT mode is almost unnecessary today and it seems to introduce lot of code complexities. Now there is less need for dos text mode * Microsoft's most apps works without CRLF newline. * Creating a crlf text file today should be explicit. (but that is default mode on windows now) * Interpreting EOF charactor can cause trouble. I think it's time to consider dropping DOS TEXT mode. What challenges are there and what preparation is needed? -- https://bugs.ruby-lang.org/