[tex-live] [NTG-pdftex] Runtime limitations on open files?

Akira Kakuto kakuto at fsci.fuk.kindai.ac.jp
Sun Aug 19 02:30:30 CEST 2007


Hi Karl,

> 1) In what file?  I can imagine it in several places.  Please, someone,
>    send an actual diff.
> 
> 2) It needs some other kind of Windows-specific conditional, since we
>    certainly cannot execute that on Unix.
> 
> 3) I see no reason to limit this change to pdftex and luatex.

I've erased  "#ifndef WIN32"  by Fabrice, since I'm using the
main function in texmfmp.c as usual:

--- texmfmp.c.orig	Thu Jul 12 06:14:00 2007
+++ texmfmp.c	Sun Aug 19 09:22:12 2007
@@ -335,7 +335,6 @@
 #endif /* TeX */
 }
 
-#ifndef WIN32
 /* The entry point: set up for reading the command line, which will
    happen in `topenin', then call the main body.  */
 
@@ -347,13 +346,16 @@
   _response (&ac, &av);
 #endif
 
+#ifdef WIN32
+  _setmaxstdio(2048);
+#endif
+
   maininit(ac, av);
 
   /* Call the real main program.  */
   mainbody ();
   return EXIT_SUCCESS;
 } 
-#endif /* ! WIN32 */
 
 /* This is supposed to ``open the terminal for input'', but what we
    really do is copy command line arguments into TeX's or Metafont's


More information about the tex-live mailing list