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=-2.9 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,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 3EC321F61A for ; Mon, 12 Dec 2022 04:47:57 +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="P2zgdFf+"; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 261937E5D0; Mon, 12 Dec 2022 04:47:44 +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=P2zgdFf+; 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 78F4B7E5A8 for ; Mon, 12 Dec 2022 04:47:38 +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=xtwS9FHSa0+CZQyLizPzSS+0fW2q9/xPNTDupt1wFPw=; b=P2zgdFf+g0K6MIO+Q4nmwgovd2dohKWtkrmTxO45Cfgd8pmRDN/sAtvNavBSHhbVx7RL oJ2sonGJG/lRZH3mmOJRaPAd6LDCPd8EqaSwvzZFHzM+AmDy9xBO9HpmTAaIQtu4unYP8k gwiGVw6vUx93vE431MKeMSIKQl1bVxpZmKrd6KS9SWWZI92My4CvcR140NwYmWzxREZf9v an20L7D/G/ykIPnuedYVtSK1usWEeW1d+9Yq61hn1TG1B1n+JJGNaRWj17m/IngFjB0Q/5 KC79hp6nvgv2OpsR9yrqcKCqHicv6rGJ67ZS8mQkDw0KXr4fwvJAum0Lf811DrRQ== Received: by filterdrecv-557d69979-r8lvl with SMTP id filterdrecv-557d69979-r8lvl-1-6396B268-B 2022-12-12 04:47:36.728156116 +0000 UTC m=+2094105.057220025 Received: from herokuapp.com (unknown) by geopod-ismtpd-2-6 (SG) with ESMTP id Bhk-0TiVTZWM_kyfUjNpZg for ; Mon, 12 Dec 2022 04:47:36.611 +0000 (UTC) Date: Mon, 12 Dec 2022 04:47:36 +0000 (UTC) From: "nobu (Nobuyoshi Nakada)" 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-Issue-Assignee: usa 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-Redmine-MailingListIntegration-Message-Ids: 87618 X-SG-EID: =?us-ascii?Q?rA5eEsXeCy+asKowYcicHxhOSUaOWYD+XnPnBc7LFC8Re9tNQ4Sv5BA=2FOz+glG?= =?us-ascii?Q?+50K4steq4vSjkkyeSAt=2FQpZK6mQgZdK22n=2FlxG?= =?us-ascii?Q?4Fre1ATtJGk4z6saDX6kHnfbVD3MuhYb65Clyor?= =?us-ascii?Q?MzbMHUF7=2FE0OhmS+eqYCRFhc2FRRfhb3ffxv64g?= =?us-ascii?Q?lq5pugl=2FaPOHIqIRm3InxupQNle0m9bJmk3NR=2Fr?= =?us-ascii?Q?6QU6T2kFf7PcT6InSCeB4yMXEwrRT3Mpf3bP7xE?= =?us-ascii?Q?jPjWzXilrvJHDNgg8Zaig=3D=3D?= To: ruby-dev@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: R3P4T6SUNZT7Q4QMXFXZUDWJT4X6BHIT X-Message-ID-Hash: R3P4T6SUNZT7Q4QMXFXZUDWJT4X6BHIT 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=3A52018=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 updated by nobu (Nobuyoshi Nakada). Status changed from Open to Assigned Assignee set to usa (Usaku NAKAMURA) YO4 (Yoshinao Muramatsu) wrote: > * Microsoft's most apps works without CRLF newline. I guess you mean those apps can read without CR, but is it the default to write with LF newlines? > * Creating a crlf text file today should be explicit. (but that is default mode on windows now) This is not related to reading, but writing. > I think it's time to consider dropping DOS TEXT mode. > What challenges are there and what preparation is needed? The most important reason we are keeping "text mode" at reading is backward interoperability for old files. How do you think, @usa? Are many of text files using LF newlines nowadays on Windows? ---------------------------------------- Feature #19193: drop DOS TEXT mode support https://bugs.ruby-lang.org/issues/19193#change-100563 * Author: YO4 (Yoshinao Muramatsu) * Status: Assigned * Priority: Normal * Assignee: usa (Usaku NAKAMURA) ---------------------------------------- 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/