* Eric Blake wrote on Tue, Mar 25, 2008 at 01:55:56PM CET:
> | just killing \r in autom4te.in leads to
> |
> | C:\msys\1.0\home\ralf\local\bin\m4.exe: premature end of frozen file
>
> Where did you kill \r? From the frozen file itself (if so, how did it get
> there in the first place, if m4 is reading input in O_TEXT)?
I merely did something like this without thinking much myself.
Cheers,
Ralf
diff --git a/bin/autom4te.in b/bin/autom4te.in
index 8efe537..50d9c23 100644
--- a/bin/autom4te.in
+++ b/bin/autom4te.in
@@ -926,6 +926,7 @@ sub freeze ($)
. " " . files_to_options (@ARGV)
. ' </dev/null');
$result =~ s/#.*\n//g;
+ $result =~ s/^\r//mg;
$result =~ s/^\n//mg;
fatal "freezing produced output:\n$result"
_______________________________________________
Bug-m4 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-m4