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 31 47fb4bb3db45
parent 30 23354fc917f4
child 32 23018a2ed2a0
CLI: untieStdIO() to avoid unwanted implicit flush() calls on std::cout → less write() calls
src/relpipe-out-gui.cpp
--- a/src/relpipe-out-gui.cpp	Sat Dec 01 23:22:41 2018 +0100
+++ b/src/relpipe-out-gui.cpp	Mon Dec 03 16:11:40 2018 +0100
@@ -63,6 +63,8 @@
 };
 
 int main(int argc, char**argv) {
+	setlocale(LC_ALL, "");
+	CLI::untieStdIO();
 	CLI cli(argc, argv);
 	// TODO: argument name collisions? Filter arguments? Use prefix for Qt? Qt: -title, -style, -geometry
 	QApplication app(argc, argv);