ports/mail/nmh-devel/files/patch-test_mhshow_test-binary
Cy Schubert 7767c9dff7 mail/nmh-devel: Fix message corruption
Upstream 8f897f65 (2023-03-12) has resulted in data corruption with
sent emails. This commit removes this upstream commmit and all that
subsequently "fix" it.
2023-12-08 15:42:08 -08:00

20 lines
652 B
Text

--- test/mhshow/test-binary.orig 2023-12-04 03:00:44 UTC
+++ test/mhshow/test-binary
@@ -21,7 +21,7 @@ expected="$MH_TEST_DIR/test-binary$$.expected"
#### Use the printf to output the NUL byte so that this
#### file (test-binary) doesn't need to be a binary file.
-printf '%s\000%s' >"${expected}" \
+printf '%s\x00%s' >"${expected}" \
"[ Message inbox:11 ]
To: recipient@example.edu
From: sender@example.edu
@@ -33,7 +33,7 @@ Here's a null byte: " ".
Here's a null byte: " ".
"
-printf '%s\000%s' >`mhpath new` \
+printf '%s\x00%s' >`mhpath new` \
"From: sender@example.edu
To: recipient@example.edu
Subject: test binary content