Blame SOURCES/sed-b-flag.patch

d0cde9
From 613057152c4f6caba22a15ed2ff0aeb9c4ce6a83 Mon Sep 17 00:00:00 2001
d0cde9
From: Jakub Martisko <jamartis@redhat.com>
d0cde9
Date: Wed, 5 Feb 2020 15:50:15 +0100
d0cde9
Subject: [PATCH] enable the -b option on all platforms
d0cde9
d0cde9
---
d0cde9
 sed/sed.c | 5 +++++
d0cde9
 1 file changed, 5 insertions(+)
d0cde9
d0cde9
diff --git a/sed/sed.c b/sed/sed.c
d0cde9
index f75e4b6..1ca5839 100644
d0cde9
--- a/sed/sed.c
d0cde9
+++ b/sed/sed.c
d0cde9
@@ -174,7 +174,12 @@ Usage: %s [OPTION]... {script-only-if-no-other-script} [input-file]...\n\
d0cde9
   fprintf (out, _("  -b, --binary\n\
d0cde9
                  open files in binary mode (CR+LFs are not" \
d0cde9
                  " processed specially)\n"));
d0cde9
+#else
d0cde9
+  fprintf (out, _("  -b, --binary\n\
d0cde9
+                 does nothing; for compatibility with WIN32/CYGWIN/MSDOS/EMX \n\
d0cde9
+                 (open files in binary mode; CR+LF are not processed specially)\n" ));
d0cde9
 #endif
d0cde9
+
d0cde9
   fprintf (out, _("  -l N, --line-length=N\n\
d0cde9
                  specify the desired line-wrap length for the `l' command\n"));
d0cde9
   fprintf (out, _("  --posix\n\
d0cde9
-- 
d0cde9
2.24.1
d0cde9