Handle CRLF when reading XML on Windows
[deliverable/binutils-gdb.git] / gdb / xml-support.c
index f5a142754578e18572874406258cb2e2c0d0fcc0..0f0806f8ee047b19ce9999b2095ff3bc87389ea1 100644 (file)
@@ -977,11 +977,11 @@ xml_fetch_content_from_file (const char *filename, void *baton)
     {
       char *fullname = concat (dirname, "/", filename, (char *) NULL);
 
-      file = gdb_fopen_cloexec (fullname, FOPEN_RT);
+      file = gdb_fopen_cloexec (fullname, FOPEN_RB);
       xfree (fullname);
     }
   else
-    file = gdb_fopen_cloexec (filename, FOPEN_RT);
+    file = gdb_fopen_cloexec (filename, FOPEN_RB);
 
   if (file == NULL)
     return {};
This page took 0.027312 seconds and 4 git commands to generate.