From 38e236962d7631ba72c0dafdafc8eb32828aea86 Mon Sep 17 00:00:00 2001 From: Nicolas Vanhoren Date: Mon, 19 Sep 2022 16:11:45 +0200 Subject: [PATCH] Update README.md to change recommandation for crlf filtering --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ee7b7f0..e475eb0 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,10 @@ is to convert line endings in text files from CRLF to git's preferred LF: # $2 = Mercurial's hash of the file # $3 = "1" if Mercurial reports the file as binary, otherwise "0" -if [ "$3" == "1" ]; then cat; else dos2unix; fi +if [ "$3" == "1" ]; then cat; else dos2unix -q; fi +# -q option in call to dos2unix allows to avoid returning an +# error code when handling non-ascii based text files (like UTF-16 +# encoded text files) -- End of crlf-filter.sh -- ```