From 5ba18bcb6f6e771b3a85453058309185faaa9948 Mon Sep 17 00:00:00 2001 From: Ali haydar Date: Sun, 31 Mar 2024 12:03:42 +0200 Subject: [PATCH] Update k-g.cpp --- src/conv/k-g.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); }