commands/cat/cat.cpp
changeset 66 2a78c4ff2eab
parent 0 7f656887cf89
--- a/commands/cat/cat.cpp	Mon Sep 20 16:46:34 2010 +0100
+++ b/commands/cat/cat.cpp	Wed Oct 13 12:41:05 2010 +0100
@@ -132,6 +132,7 @@
 		else
 			{
 			iEncoding = EBinary;
+			LeaveIfErr(Stdout().SetMode(RIoReadWriteHandle::EBinary), _L("Unable to set stdout to binary mode")); // To tell iosrv to not mess about with line endings.
 			}
 		}