]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Avoid raw carriage return in scripts.
authorEric Blake <ebb9@byu.net>
Mon, 27 Oct 2008 22:34:58 +0000 (16:34 -0600)
committerEric Blake <ebb9@byu.net>
Mon, 27 Oct 2008 22:34:58 +0000 (16:34 -0600)
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
via tr, rather than with literal byte.
* THANKS: Update.
Reported by Steven R. Loomis; patch suggested by Thomas Dickey.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
THANKS
lib/autoconf/status.m4

index 06d08ded2452e60b889f38f2222fdc7da77c6696..e7704b2c8cce0902ef8b901a2b4036fe4689cb9a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-10-27  Eric Blake  <ebb9@byu.net>
+
+       Avoid raw carriage return in scripts.
+       * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
+       via tr, rather than with literal byte.
+       * THANKS: Update.
+       Reported by Steven R. Loomis; patch suggested by Thomas Dickey.
+
 2008-10-27  Eric Blake  <ebb9@byu.net>
 
        Use AS_VAR_ARITH.
diff --git a/THANKS b/THANKS
index 0488f2958687e4e9740fb436763cd322ef320433..f566006c40e43261c5ce0af0bcddfef30f724ca8 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -325,6 +325,7 @@ Steve Chamberlain           sac@cygnus.com
 Steve Huston                shuston@riverace.com
 Steve Robbins               steve@nyongwa.montreal.qc.ca
 Steven G. Johnson           stevenj@alum.mit.edu
+Steven R. Loomis            srl@icu-project.org
 Stu Grossman                grossman@cygnus.com
 Sumit Pandya                sumit@elitecore.com
 Syd Polk                    spolk@cygnus.com
index 3cbf618e7aeff91f7e9a38199afeae7f686c33bd..eb3ddbd4e02ada6c855a4a019c25b6ab2c7df491 100644 (file)
@@ -370,7 +370,7 @@ else
   # The final `:' finishes the AND list.
   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
 fi]])
-ac_cr='\r'
+ac_cr=`echo X | tr X '\015'`
 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   ac_cs_awk_cr='\\r'