|
From: | Antonio Diaz Diaz |
Subject: | Re: ChangeLog encoding; testsuite file/s |
Date: | Wed, 26 Jan 2022 16:23:08 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 |
Adam Tuja wrote:
Last thing, for the record, if someone needed it. CRLF is actually simple and reliable to generate - I use it for years now:
Making any modification to a file in a portable way (not only among posix systems) is not reliable. Adding CR to some lines of a file, but not to others, even less so. "It works for me" is not enough. You always can find a system where it doesn't work as expected.
It requires `awk` which as `printf` are part of POSIX.1-2008.
Depending on any external tool to generate a test file instead of shipping the file in the tarball can't be guaranteed to work. Lzip is not only for posix systems, and the external tool may have bugs. See for example this post about bugs in mawk:
http://mm.icann.org/pipermail/tz/2022-January/031164.html Also, shipping the file in the tarball is future-proof. Regards, Antonio.
[Prev in Thread] | Current Thread | [Next in Thread] |