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: X-Spam-Status: No, score=-3.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [IPv6:2a01:4f8:1c0c:6b10::1]) (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 A827F1F852 for ; Tue, 20 Dec 2022 16:53:51 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; secure) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.b="vBWMkh/G"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.b="OP53pUxF"; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 2AEBC7E994; Tue, 20 Dec 2022 16:53:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1671555205; bh=KfHBDZ9uvLnjAACXgUVPv+UNAZIFGDlfb1SJ5CfqdIs=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=vBWMkh/GY1IzEWHgWRUjeku4KiGjDR75RrXxVpzKUUk7dDI0sQ8uwbaGxnqE3cCit S5znMIUvl0kXWeSmakOzOY/YQA58D/scu0SIel3oJwSnM03Gb3Glkb/eFFe5HBjCbS dM+03JLs6l5pZwwU2B03cpTdVHHe+8oeamquJbOQ= Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 785227E5D4 for ; Tue, 20 Dec 2022 16:53:18 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=OP53pUxF; dkim-atps=neutral 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=N1oo1YKTFDA0KlGroDDELNyXeHxXTYFSzp4RoS+JApM=; b=OP53pUxFevvbyQ1xmzEUIBWGCY5pstZJ02m3spSPxlUxiZnLM3dXHwz4j8KYdlRalnsI +jfsAsfueHH5rjWAsEnbSyqoT/n5oK5nUbfiEPO0I+u9MjefE4kzcXxaWqWtut34czJMUS OLRxXAnsrtFVD8DJC5vo40l62D0u3r9xDRump4Iigbmmd8kaDsgnEKkgoBA+PE1r/7eWrp vMa5LmEefGKDT+CnWaWWhN0JOXzHeMwTuy4LexqeDaQaVlq+GpAoVLK9t8APsYe0LXkNtV cS++7kFvA0S9UimPdhl3S1KWxNYNqjBglMBvC4uYiUK/THUVQN9zsk1bQ4XNniJg== Received: by filterdrecv-6c4ccfbdd8-zhgq7 with SMTP id filterdrecv-6c4ccfbdd8-zhgq7-1-63A1E87C-30 2022-12-20 16:53:16.747742841 +0000 UTC m=+2828864.038286206 Received: from herokuapp.com (unknown) by geopod-ismtpd-3-2 (SG) with ESMTP id FeGRiEmrTIKyJIlicxFzSA for ; Tue, 20 Dec 2022 16:53:16.550 +0000 (UTC) Date: Tue, 20 Dec 2022 16:53:16 +0000 (UTC) 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: 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: 87753 X-SG-EID: =?us-ascii?Q?uH=2F0OBqzZKytzBPqds8IOEX0+RS7rPpC6GVHpaMZqlQBSjc5k3j3CM1xKsZw6i?= =?us-ascii?Q?u5CvhBY1ai5WXqQbu8FL=2F5fDlaunH8RmMIAuv7P?= =?us-ascii?Q?ZQ5MpC74OgLODyZFlFSjeCs7UoKQIi1QiTfgBHy?= =?us-ascii?Q?tb3RxTshm2NFZwlcffK70K3eOY6Lza1K7zDopG3?= =?us-ascii?Q?rICyITKvQNEC=2FG4voXHBOCZsNqIcGaE78ASCtf7?= =?us-ascii?Q?RRJgXvLss7PkSAX6HNOzHmZ+Rmj9So8kdrD94Lu?= =?us-ascii?Q?=2FrFG6izU3JVYsQ03h3vaA=3D=3D?= To: ruby-dev@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: CZNAXC5B6RPKM2MWPCUHPCCXNOPSESUE X-Message-ID-Hash: CZNAXC5B6RPKM2MWPCUHPCCXNOPSESUE 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=3A52030=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: From: "YO4 (Yoshinao Muramatsu) via ruby-dev" Cc: "YO4 (Yoshinao Muramatsu)" Issue #19193 has been updated by YO4 (Yoshinao Muramatsu). > The most important reason we are keeping "text mode" at reading is backward interoperability for old files. agree too. Interoperability with the unix environment is becoming increasingly important. So, when writing CRLF newline it is better to specify it explicitly. ---------------------------------------- Feature #19193: drop DOS TEXT mode support https://bugs.ruby-lang.org/issues/19193#change-100728 * 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/