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:40 +0100
branchv_0
changeset 10 6af5371af82d
parent 9 86d69cfbacc9
child 11 663e3c9fe7ef
CLI: untieStdIO() to avoid unwanted implicit flush() calls on std::cout → less write() calls
relpipe-out-tabular.cpp
--- a/relpipe-out-tabular.cpp	Thu Nov 29 22:30:12 2018 +0100
+++ b/relpipe-out-tabular.cpp	Mon Dec 03 16:11:40 2018 +0100
@@ -31,6 +31,8 @@
 using namespace relpipe::out::tabular;
 
 int main(int argc, char** argv) {
+	setlocale(LC_ALL, "");
+	CLI::untieStdIO();
 	CLI cli(argc, argv);
 
 	int resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR;