CLI: untieStdIO() to avoid unwanted implicit flush() calls on std::cout → less write() calls v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Mon, 03 Dec 2018 16:11:41 +0100
branchv_0
changeset 5 7c84323969d1
parent 4 7e0211f00413
child 6 90381f1e3f7f
CLI: untieStdIO() to avoid unwanted implicit flush() calls on std::cout → less write() calls
src/relpipe-out-xml.cpp
--- a/src/relpipe-out-xml.cpp	Sat Dec 01 23:22:41 2018 +0100
+++ b/src/relpipe-out-xml.cpp	Mon Dec 03 16:11:41 2018 +0100
@@ -32,6 +32,8 @@
 using namespace relpipe::out::xml;
 
 int main(int argc, char** argv) {
+	setlocale(LC_ALL, "");
+	CLI::untieStdIO();
 	CLI cli(argc, argv);
 
 	int resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR;