Revision: 77368
          http://sourceforge.net/p/brlcad/code/77368
Author:   brlcad
Date:     2020-10-08 18:07:43 +0000 (Thu, 08 Oct 2020)
Log Message:
-----------
make sure standard input is binary mode, leave note about stdout for future me

Modified Paths:
--------------
    brlcad/trunk/bench/pixcmp.c

Modified: brlcad/trunk/bench/pixcmp.c
===================================================================
--- brlcad/trunk/bench/pixcmp.c 2020-10-08 18:00:11 UTC (rev 77367)
+++ brlcad/trunk/bench/pixcmp.c 2020-10-08 18:07:43 UTC (rev 77368)
@@ -262,6 +262,10 @@
        exit(FILE_ERROR);
     }
 
+    setmode(fileno(stdin), O_BINARY);
+    /* we're writing out ascii */
+    /* setmode(fileno(stdout), O_BINARY); */
+
     if (f1_skip != f2_skip && f1 == stdin && f2 == stdin) {
        bu_exit(OPTS_ERROR, "ERROR: cannot skip the same input stream by 
different amounts\n");
     }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to