From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Wed, 15 Oct 2025 17:40:04 -0400
Subject: tests: random_text: don't include contested `\r`

The OpenPGP ecosystem has at least two (maybe three) different
perspectives on how to handle text-mode normalization of `\r` line
endings.

See
https://mailarchive.ietf.org/arch/msg/openpgp/NzVArGf7JiBVm-3BmMdkFH_1nvM
for more details.

In the meantime, don't bother trying to align RNP with any particular
choice on whether `\r` should be normalized when making text
signatures by not including `\r` in the test messages being signed.
---
 src/tests/cli_common.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tests/cli_common.py b/src/tests/cli_common.py
index 1d3d81f..fc55eed 100644
--- a/src/tests/cli_common.py
+++ b/src/tests/cli_common.py
@@ -67,10 +67,10 @@ def pswd_pipe(password):
 def random_text(path, size):
     # Generate random text, with 50% probability good-compressible
     if random.randint(0, 10) < 5:
-        st = ''.join(random.choice(string.ascii_letters + string.digits + " \t\r\n-,.")
+        st = ''.join(random.choice(string.ascii_letters + string.digits + " \t\n-,.")
                      for _ in range(size))
     else:
-        st = ''.join(random.choice("abcdef0123456789 \t\r\n-,.") for _ in range(size))
+        st = ''.join(random.choice("abcdef0123456789 \t\n-,.") for _ in range(size))
     with open(path, 'w+') as f:
         f.write(st)
 
