From nobody Wed Jan 10 00:05:22 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T8p3Z4XNdz56tJG; Wed, 10 Jan 2024 00:05:46 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Received: from sdaoden.eu (sdaoden.eu [217.144.132.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4T8p3Z2JfCz4SFL; Wed, 10 Jan 2024 00:05:46 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Authentication-Results: mx1.freebsd.org; none Date: Wed, 10 Jan 2024 01:05:22 +0100 Author: Steffen Nurpmeso From: Steffen Nurpmeso To: Kyle Evans Cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: c2356a440db9 - main - asa: Rewrite to fix line termination issue. Message-ID: <20240110000522.BLC0pwdG@steffen%sdaoden.eu> In-Reply-To: <637f3964-c65e-42cf-97a1-342e9447cd69@FreeBSD.org> References: <202401091627.409GRcI0028831@gitrepo.freebsd.org> <20240109180554.UYZwm9Yl@steffen%sdaoden.eu> <637f3964-c65e-42cf-97a1-342e9447cd69@FreeBSD.org> Mail-Followup-To: Kyle Evans , src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org User-Agent: s-nail v14.9.24-588-g826cef48a3 OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4T8p3Z2JfCz4SFL X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15987, ipnet:217.144.128.0/20, country:DE] Kyle Evans wrote in <637f3964-c65e-42cf-97a1-342e9447cd69@FreeBSD.org>: |On 1/9/24 12:05, Steffen Nurpmeso wrote: |> Dag-Erling Sm=C3=B8rgrav wrote in |> <202401091627.409GRcI0028831@gitrepo.freebsd.org>: |>|The branch main has been updated by des: |>| |>|URL: https://cgit.FreeBSD.org/src/commit/?id=3Dc2356a440db91c106867d45c= 94b\ |>|3d6d7bc0e50f0 |>| |>|commit c2356a440db91c106867d45c94b3d6d7bc0e50f0 |>|Author: Dag-Erling Sm=C3=B8rgrav |>|AuthorDate: 2024-01-09 14:09:41 +0000 |>|Commit: Dag-Erling Sm=C3=B8rgrav |>|CommitDate: 2024-01-09 16:27:15 +0000 |>| |>| asa: Rewrite to fix line termination issue. |>| |>| The standard is somewhat unclear, but on the balance, I believe \ |> ... |>| - Second, it unconditionally emits a newline at the end of the outp= ut |>| for non-empty input, even if the input did not end with a newline. |> ... |>=20 |> I want to point out that POSIX only knows about text files which |> end with a LF newline. Otherwise it is not a text file. (I think |> Stallman and emacs joke on this by allowing something else, iirc |> from before Y2K when i shortly used it, and, funnily, from some |> thread on another ML just last week or so, where it was claimed |> that this could have roots in emacse not rooting in UNIX.) | |It notably defines a text file as zero or more lines, and doesn't say=20 |anything about incomplete lines -- just that none of the lines contain=20 |NUL characters. One can conclude without further information that a=20 |trailing LF is not at all required in any circumstance, it's just an=20 |incomplete line. I must admit i have not looked at the actual changeset code, only the commit message. (I have waited until the "ghost hour" passed until i answered this.) --End of <637f3964-c65e-42cf-97a1-342e9447cd69@FreeBSD.org> --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)