From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Tramp and conversion of \r\n into \n Date: Sun, 08 Aug 2021 16:25:34 +0200 Message-ID: <87r1f4rp29.fsf@gmx.de> References: <193e76e900f64f01a39893b12cf7c4ff@3ds.com> <871rfw900w.fsf@gmx.de> <87sg8c7i5w.fsf@gmx.de> <4f2b42e36d924f83883e120e601d40f7@3ds.com> <87tuslzrw1.fsf@gmx.de> <7135a39a200c4f8397c8bddb9da8d3fc@3ds.com> <8736014u95.fsf@gmx.de> <3474731f-eada-8185-1a21-f337fd55b38b@thomasross.io> <87k0kzj3wr.fsf@gmx.de> <87a6lvhwpz.fsf@gmx.de> <875ywhicr4.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1369"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: "emacs-devel@gnu.org" , Thomas Ross , yyoncho , APEL Martin To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 08 16:26:31 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mCjl1-0000Ao-8E for ged-emacs-devel@m.gmane-mx.org; Sun, 08 Aug 2021 16:26:31 +0200 Original-Received: from localhost ([::1]:59408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCjkz-0002Ix-5e for ged-emacs-devel@m.gmane-mx.org; Sun, 08 Aug 2021 10:26:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCjkJ-0001YR-Q4 for emacs-devel@gnu.org; Sun, 08 Aug 2021 10:25:47 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:50709) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCjkI-0007rS-5F for emacs-devel@gnu.org; Sun, 08 Aug 2021 10:25:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1628432736; bh=lbr62YcADDSv53D5GXu8lIawLNgyTh+buLmD3TYzhuk=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=B9GDd3rzXUtIRhrcyy/kAoLH5kskf883i5dhK6a81HTYMfLH63j7idVv+FyfK9ai5 HR2CjfqXhgtXXp1rotQifUkRSfFY6p/Cw6/E65AILZ1po5bKm7ofLz/pBnTL/LKxVc P+l4F1BKkIDs9UFWohxhWXgD/35oxiMt/1LhBw8I= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.91.238.138]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MeU4s-1mkha72yyS-00aTY9; Sun, 08 Aug 2021 16:25:35 +0200 In-Reply-To: (Stefan Monnier's message of "Sat, 07 Aug 2021 18:04:29 -0400") X-Provags-ID: V03:K1:GOl40ejoZC+AEBw+An2g5QVwbjpCshfrxudPdtOjN1SEk19GqU/ pHRuIL3PYvpu5/DK2E4TksmBxNhNMTUDviSL7EEwgrcYbjEBHEFu9WW6erGRjuZtXs3aSQ/ 9kMv4h8ydApsw/38H8F7+VH3nuA9TI0M4AyMFXobbiDGKnm5EpLQ6QGYtUdJOeNh1wgh/up lyGhZKy9OKBQ6j2qlnDbQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:FLXujtBvMjM=:mg38D1cMHhGQaq0Z6YLt3f W5075I5gAYjxpXN4WbKlwyu5ny2si/zGs+mjXSWaew9Fk3zwq9Ke2k97JZRxBDked0Mw/DH98 AfVkLPz50fxzhzjxduk7AK2A++hun9bBlHe3DGaymZOFuU6vzXkOivgMVxzxSK6u4+MubOsek 5h/WiuImOawZXUa0C2iyN7xzTcibJr0f10MYDni5Iadeula0xrItvhkyNQhcA60wDK1jKNZMb RxvM8ldY9cClHSM5Y0J7G6HFMuXzdxN+iIIPIF19kwaowrEUPBpT3/Sq4IU76ysHmyKXFgv7o 9fQt5RFjoEABzcHpTMKmWp48SarR5P1CHb2vNvYrsdPbICkGo2ju+YDWMqrVVtVMm5GEEKhdA VFuhCKFYGou89wF9JbUCXjqHW6YYpqzYvO91BTaBpz5u0jDwpT35ULhTdm8tbgsGlf+RoOvFF L1e/3xABbzTGzth7tz2ioT1ypuk0otaejsj3IflmZgjK2V31Rs7bfic9d1uJc2UAkG9ObhJ73 8wz3dr0YZyLXhnYVracDG9jxd2jGci/2fddjZkt6t+X9rMauaOliyV0T9onBl8wg7CGNBtUuI J3RUTqKI0evCIgd/MBsfQdzLsC2uFoEIwQHgSz4eKf7H4KvU2isW587XQVLXncbcEfTfHF5KF I3bzAnNJfHNm/zv2JtqD22upUQxtToph3CfvyWMwc139TUARgiZPhf7WDtJp9XYUDiibXtk1U fW5kFJEIFPGI+tSurvI36u3c0Y0lKnTJ4iAIme2K7c708je0W7ESXjs6wgNKAGb4lm+b9lXM Received-SPF: pass client-ip=212.227.15.19; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272200 Archived-At: Stefan Monnier writes: > I guess if we wanted to more faithfully simulate a pipe, we'd have to > send the process input via something like a base64 decoder and get the > output via a base64 encoder: this way not only stdin/stdout is a pipe but > we can protect ourselves from the way ttys can mess with some bytes (as > seen in this thread) and also overcome some of the limits of some ttys > when sending "large" amounts of data at a time (IIRC on some systems > this can either freeze the tty or the tty may insert extra chars like > ^A or some such; my memory says the macOS kernel was such a culprits > some years ago). > > The cure way be worse than the disease, tho. Yes. Maybe we could play with "stty raw", when (tramp-)process-connection-type is nil or 'pipe. > Stefan Best regards, Michael.