]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
contrithanks: fix for BSD `sed` tool
authorViktor Szakats <commit@vsz.me>
Mon, 28 Jul 2025 12:45:57 +0000 (14:45 +0200)
committerViktor Szakats <commit@vsz.me>
Mon, 28 Jul 2025 15:29:26 +0000 (17:29 +0200)
Fixing on macOS, and possibly other BSDs:
```
sed: 83: ./docs/THANKS-filter: RE error: illegal byte sequence
```
Where line 83 contains `\xED`.

Switch to raw encoding to avoid `sed` evaluating the stream of bytes.

Ref: #18061

Closes #18062

scripts/contrithanks.sh

index 98eefc8ccdbd15732441a9edaa011cab3a049dd2..59db5b876afdedecb2d91f4b161e1f527aca366e 100755 (executable)
@@ -79,7 +79,7 @@ tail -n +7 ./docs/THANKS | sed 's/ github/ github/i'  > $rand
   sed 's/, */\n/g'| \
   sed 's/^ *//'
 } | \
-sed -f ./docs/THANKS-filter | \
+LC_ALL=C sed -f ./docs/THANKS-filter | \
 sort -fu | \
 grep -aixvFf ./docs/THANKS >> $rand