commands/cat/cat.cpp
changeset 66 2a78c4ff2eab
parent 0 7f656887cf89
equal deleted inserted replaced
63:6a2083f7eeb8 66:2a78c4ff2eab
   130 			PrintWarning(_L("--encoding overrides legacy --binary option"));
   130 			PrintWarning(_L("--encoding overrides legacy --binary option"));
   131 			}
   131 			}
   132 		else
   132 		else
   133 			{
   133 			{
   134 			iEncoding = EBinary;
   134 			iEncoding = EBinary;
       
   135 			LeaveIfErr(Stdout().SetMode(RIoReadWriteHandle::EBinary), _L("Unable to set stdout to binary mode")); // To tell iosrv to not mess about with line endings.
   135 			}
   136 			}
   136 		}
   137 		}
   137 
   138 
   138 	if (iEncoding == EBinary || iEncoding == ELtkUtf8 || iFiles.Count() == 0)
   139 	if (iEncoding == EBinary || iEncoding == ELtkUtf8 || iFiles.Count() == 0)
   139 		{
   140 		{