Changeset: f933866f1b0b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f933866f1b0b
Modified Files:
common/stream/stdio_stream.c
Branch: Oct2020
Log Message:
Check for Unicode BOM before handing over to Windows-specific code.
diffs (23 lines):
diff --git a/common/stream/stdio_stream.c b/common/stream/stdio_stream.c
--- a/common/stream/stdio_stream.c
+++ b/common/stream/stdio_stream.c
@@ -410,9 +410,6 @@ stream *
stdin_rastream(void)
{
const char *name = "<stdin>";
-#ifdef _MSC_VER
- return win_console_in_stream(name);
-#else
// Make an attempt to skip a BOM marker.
// It would be nice to integrate this with with the BOM removal code
// in text_stream.c but that is complicated. In text_stream,
@@ -433,6 +430,9 @@ stdin_rastream(void)
}
}
+#ifdef _MSC_VER
+ return win_console_in_stream(name);
+#else
return file_rstream(stdin, false, name);
#endif
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list