Revision: 76479
http://sourceforge.net/p/brlcad/code/76479
Author: brlcad
Date: 2020-07-25 04:50:43 +0000 (Sat, 25 Jul 2020)
Log Message:
-----------
bw-fb needs to specify binary for windows
Modified Paths:
--------------
brlcad/trunk/NEWS
brlcad/trunk/src/fb/bw-fb.c
Modified: brlcad/trunk/NEWS
===================================================================
--- brlcad/trunk/NEWS 2020-07-25 04:44:50 UTC (rev 76478)
+++ brlcad/trunk/NEWS 2020-07-25 04:50:43 UTC (rev 76479)
@@ -13,6 +13,7 @@
--- 20XX-XX-XX Release 7.3X.X ---
----------------------------------------------------------------------
+* fixed bw-fb on Windows - Sean Morrison
* expanded 'bo' command docs with a DSP input example - Sean Morrison
* fixed 'in' making joint, superell, & script objects - Sean Morrison
* Creo converter always writes out CREO_NAME attribute - Sean Morrison
Modified: brlcad/trunk/src/fb/bw-fb.c
===================================================================
--- brlcad/trunk/src/fb/bw-fb.c 2020-07-25 04:44:50 UTC (rev 76478)
+++ brlcad/trunk/src/fb/bw-fb.c 2020-07-25 04:50:43 UTC (rev 76479)
@@ -159,11 +159,12 @@
return 0;
file_name = "-";
infd = 0;
+ setmode(fileno(stdin), O_RDONLY|O_BINARY);
} else {
char *ifname;
file_name = argv[bu_optind];
ifname = bu_file_realpath(file_name, NULL);
- if ((infd = open(ifname, 0)) < 0) {
+ if ((infd = open(ifname, O_RDONLY|O_BINARY)) < 0) {
fprintf(stderr,
"bw-fb: cannot open \"%s (canonical %s)\" for reading\n",
file_name, ifname);
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