diff --git a/src/conv/k-g.cpp b/src/conv/k-g.cpp index 925a2723f26..e81ca817e89 100644 --- a/src/conv/k-g.cpp +++ b/src/conv/k-g.cpp @@ -613,7 +613,7 @@ main(int argc, char **argv) bu_exit(1, "Error: file %s already exists.\n", argv[1]); } - std::ifstream infile(argv[0]); + std::ifstream infile(argv[0], std::ios::binary); if (!infile.is_open()) { bu_exit(1, "Error: unable to open %s for reading.\n", argv[0]); }