]> granicus.if.org Git - python/commitdiff
Remove the use of the "cat" program. This improves portability to non-Unix
authorFred Drake <fdrake@acm.org>
Fri, 10 Aug 2001 20:12:09 +0000 (20:12 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 10 Aug 2001 20:12:09 +0000 (20:12 +0000)
platforms.

This is part the response to SF patch #429611.

Doc/perl/l2hinit.perl

index 58ed604c223b73d9160aaecf04b6b1c849c0edde..cd66a032029089f672605b245cf2bb38c9e42baa 100644 (file)
@@ -418,11 +418,15 @@ sub do_cmd_textohtmlinfopage {
            $the_version .= ", Release $PACKAGE_VERSION$RELEASE_INFO";
        }
     }
+    my $about;
+    open(ABOUT, "<$ABOUT_FILE") || die "\n$!\n";
+    sysread(ABOUT, $about, 1024*1024);
+    close(ABOUT);
     $_ = (($INFO == 1)
           ? join('',
                  $close_all,
                  "<strong>$t_title</strong>$the_version\n",
-                 `cat $ABOUT_FILE`,
+                 $about,
                  $open_all, $_)
           : join('', $close_all, $INFO,"\n", $open_all, $_));
     $_;